您好,登錄后才能下訂單哦!
#tar zvxf mysql-4.1.15.tar.gz
#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;
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。