ho notato che sulla mia distro "fedora Core 1" per l'esattezza è installato mysql.
dal momento che mi serve un database ho pensato di usare quello, ma non so come lanciarlo.
se da console scrivo:
[root@server tochiro]# mysql
questo è il risultato:
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
ho pensato che forse il fatto che fosse presente non significasse necessariamente che fosse installato allora ho visto tutto quello che iniziava con mysql:
[root@server tochiro]# mysql
mysql mysqldumpslow
mysqlaccess mysql_find_rows
mysqladmin mysql_fix_privilege_tables
mysqlbinlog mysqlhotcopy
mysqlbug mysqlimport
mysqlcheck mysql_install_db
mysql_config mysql_setpermission
mysql_convert_table_format mysqlshow
mysqld_multi mysqltest
mysqldump mysql_zap
ed ho lanciato:
[root@server tochiro]# mysql_install_db
ecco loutput:
Installing all prepared tables
040513 13:24:23 /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 !
This is done with:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h server 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/safe_mysqld &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; 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
se adesso rilancio:
[root@server tochiro]# mysql
il messagio di errore è il seguente:
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
cosa sbaglio?