go to the user and groups setting in the gnome system administration menu and set the mysql user password to something that makes sense for you. Then give the mysql user a shell '/bin/bash' (setting in the advanced tab of user and groups) and then close all the windows with ok to set the changes.
Then change to user mysql
useraccount>su - mysql
password:
and enter the mysql password
now you should have the bash promt:
#bash>
then enter
#bash>mysql_install_db
then
#bash>mysqld --skip-grant-tables &
then
#bash>mysql
you should get the mysql promt
mysql>UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';
mysql> FLUSH PRIVILEGES;
############################
############################
now open a new terminal window....
useraccount> pfexec /usr/bin/svcadm enable database/mysql:version_50
this should start the mysql database (pfexec /usr/bin/svcadm disable database/mysql:version_50 stops the database)
if you want mysql to automatically start and stop with powerup and powerdown
then do this (which i have not)
pfexec /usr/sbin/svccfg import /var/svc/manifest/application/database/mysql.xml
What is a proposition?
vor 15 Jahren
Keine Kommentare:
Kommentar veröffentlichen