Well, I still don't uderstand what to do.
When I run "mysql_install_db" it prints:
Code:
root@darkstar:~# mysql_install_db
Installing all prepared tables
050515 22:11:25 /usr/libexec/mysqld: Shutdown Complete
To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h darkstar password 'new-password'
See the manual for more instructions.
NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com
[1]+ Done mysqld_safe
root@darkstar:~#
Then I do what it tells me to:
Code:
root@darkstar:~# mysqladmin -u root xxx xxx
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysql/mysql.sock' exists!
root@darkstar:~#
But I have no socket! And I didn't find how to create it.
"mysqld" doesn't run too:
Code:
root@darkstar:~# mysqld_safe &
[1] 884
root@darkstar:~# Starting mysqld daemon with databases from /var/lib/mysql
050515 22:13:35 mysqld ended
[1]+ Done mysqld_safe
root@darkstar:~#
Can anyone help me.
Thanks.