溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

linux enterprise 3.0 下安裝 mysql4.1.15.tar.gz

發(fā)布時(shí)間:2020-08-09 16:59:32 來源:ITPUB博客 閱讀:127 作者:weiming_liu 欄目:MySQL數(shù)據(jù)庫

#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;

[@more@]

向AI問一下細(xì)節(jié)

免責(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)容。

rp l4
AI