Linux上如何安裝Mysql數據庫並使用?
阿新 • • 發佈:2017-11-13
服務 iptable true root mysql highlight delete let password
Linux上安裝mysql數據庫步驟:
yum -y install mysql-server chkconfig mysqld on mysqladmin -u root password ‘123456‘ mysql -uroot -p grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘123456‘ with grant option delete from user where host=‘127.0.0.1‘ flush privileges
另外木有關防火墻的關下防火墻:
1。查看防火墻: service iptables status 2.開啟防火墻:service iptables stop|start|restart 3.關閉:service iptables stop
chkconfig:用於設置服務的開機啟動
查看:chkconfig --list
關閉:chkconfig service_name off
開啟:chkconfig service_name on
Linux上如何安裝Mysql數據庫並使用?