当前位置:Gxlcms > mysql > InstallandManageMySQL_MySQL

InstallandManageMySQL_MySQL

时间:2021-07-01 10:21:17 帮助过:25人阅读

一些最开始的使用方法
download standard binary distribution
1 tar xzvf mysql-standard-*.tar.gz to /usr/local //extract package
2 cd /usr/local


ln -s mysql-standard* mysql //make symbol link
3 cd mysql
scripts/mysql_install_db //initialize db
4 bin/mysqld_safe & //start mysql server
5 bin/mysqladmin -u root password 'newpwd' //change password for root
bin/mysqladmin -u root password newpwd //if in windows
6 bin/mysql -u root -p$pwd //enter mysql
mysqladmin -u root -p$pwd shutdown //shutdown mysql

人气教程排行