#tar zvxf MySQL-4.1.15.tar.gz
成都創(chuàng)新互聯(lián)公司成立與2013年,是專業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項(xiàng)目成都網(wǎng)站設(shè)計(jì)、網(wǎng)站建設(shè)網(wǎng)站策劃,項(xiàng)目實(shí)施與項(xiàng)目整合能力。我們以讓每一個(gè)夢(mèng)想脫穎而出為使命,1280元忻府做網(wǎng)站,已為上家服務(wù),為忻府各地企業(yè)和個(gè)人服務(wù),聯(lián)系電話:18982081108
#mv mysql-4.1.15 mysql
安裝Mysql。(
#cd mysql
#./configure --prefix=/data/mysql --with-charset=gbk
#make
#make install
#cp support-files/my-medium.cnf /etc/my.cnf
#cd /usr/local/mysql
#bin/mysql_install_db --user=mysql
# chown -R root .
#chown -R mysql var
#chgrp -R mysql .
#bin/mysqld_safe --user=mysql &
mysql給用戶授權(quán)和增加用戶
grant all on *.* to user@"hostip" identified by 'passwd' with grant option
flush privileges
關(guān)閉MYSQL
/data/mysql/bin/mysqladmin -u root shutdown
修改mysql用戶密碼
mysql >use mysql;
mysql> update user set password=password('passwwd') where user='root';
mysql> flush privileges;