Slackware 13.1 - MySQL Initialize ================================= Public domain ******************************************************************************** ### Startup mysql_install_db --user=mysql chmod +x /etc/rc.d/rc.mysqld /etc/rc.d/rc.mysqld start ******************************************************************************** ### Cleanup drop database test; delete from mysql.user where user=''; set password for 'root'@'localhost' = password ('new-password'); set password for 'root'@'127.0.0.1' = password ('new-password'); set password for 'root'@'HOSTNAME' = password ('new-password'); ******************************************************************************** ### Enable networking sed -i -e 's,^SKIP="--skip-networking",#SKIP="--skip-networking",' /etc/rc.d/rc.mysqld /etc/rc.d/rc.mysqld restart ******************************************************************************** _BY: Pejman Moghadam_ _TAG: mysql_ _DATE: 2011-06-08 09:30:03_