rpm -e mariadb-libs postfix
(2)安裝
[root@localhost ~]
# groupadd mysql
[root@localhost ~]
# useradd -g mysql mysql
[root@localhost ~]
# mkdir mysql
[root@localhost ~]
# tar xf mysql-8.0.16-2.el7.x86_64.rpm-bundle.tar -c mysql
[root@localhost ~]
# cd mysql
[root@localhost mysql]
# yum localinstall mysql-community-client-8.0.16-
2.el7.x86_64.rpm mysql-community-server-8.0.16-2.el7.x86_64.rpm mysql-community-
libs-8.0.16-2.el7.x86_64.rpm mysql-community-common-8.0.16-2.el7.x86_64.rpm
(3)啟動
[root@localhost ~]
# systemctl start mysqld
[root@localhost ~]
# systemctl enable mysqld
(4)mysql安裝完成之後,在/var/log/mysqld.log檔案中給root生成了乙個預設密碼。通過下面的方式
找到root預設密碼,然後登入mysql進行修改:
[root@localhost ~]
# grep "temporary password" /var/log/mysqld.log
[root@localhost ~]
# mysql -uroot -p #剛才過濾的密碼
enter password:
welcome to the mysql monitor. commands end with ; or \g.
your mysql connection id is 8
server version: 8.0.16
oracle is a registered trademark of oracle corporation and/or its
affiliates. other names may be trademarks of their respective
owners.
type
'help;' or '\h'
for help.
type
'\c' to clear the current input statement.
mysql> alter user 'root'@'localhost' identified by 'abc123@com'
;#大寫,小寫,數
字,特殊符號
query ok, 0 rows affected (0.01 sec)
程式設計師 mysql安裝 mysql安裝
mysql安裝 1 解除安裝系統自帶mariadb資料庫 rpm qa grep mariadb rpm e nodeps mariadb libs 5.5.44 2.el7.centos.x86 64 wget yum localinstall y mysql57 community releas...
程式安裝mysql資料庫 安裝Mysql資料庫
1.安裝mysql資料庫 wget 在 usr local src下解壓縮檔案包 tar zxvf mysql 5.6.35 linux glibc2.5 x86 64.tar.gz 將解壓後的檔案包改名為mysql mv mysql 5.6.35 linux glibc2.5 x86 64 usr...
mysql 編譯程式 mysql安裝編譯
mysql 安裝前確認以下包已經裝好 gcc gcc c ncurses devel usr sbin groupadd mysql usr sbin useradd g mysql mysql tar zxvf mysql 5.4.0 beta.tar.gz cd mysql 5.4.0 beta...