ho scritto questo piccolo ,sicuramente ancora incompleto, tuttorial per avviare mysql.
Se ti puo' essere di aiuto ...
codice:
Tutorial testato su Linux Slackware 10 (scritto da AnDr3a_NeT) ...
Con MySQL già installato eseguire i seguenti comandi da shell per utilizzare il db.
**NOTA_0 => Script per poter avviare MySQL(da utilizzare anche x farlo partire boot del pc in automatico):
/usr/share/mysql/mysql.server (argomenti : start | stop | restart )
**NOTA_1 => Cambio i permessi(gruppo e utente) per poter eseguire MySQL (l'opzione -R cambia,in modo ricorsivo,il gruppo della cartella e dei files in essa contenuti)
root@linuxbox:~# mysql_install_db
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
040628 15:01:49 /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
(testato sotto Slackware 10)
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 linuxbox password 'new-password'
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe & **NOTA_0
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
root@linuxbox:~# cd /var/lib
root@linuxbox:/var/lib# chown -R mysql mysql/ **NOTA_1
root@linuxbox:/var/lib# chgrp -R mysql mysql/ **NOTA_1
root@linuxbox:/var/lib# cd /usr
root@linuxbox:/usr# /usr/bin/mysqld_safe **NOTA_0
Starting mysqld daemon with databases from /var/lib/mysql