centos下安裝mysql 8.0
wget
rpm -ivh mysql80-community-release-el7-3.noarch.rpm
yum install mysql
3:如果出現libaio錯誤:安裝:
yum install libaio
4:開啟mysql
systemctl start mysqld
5:修改使用者
alter
user
'root'@'localhost' identified by 'aa123456';
flush privileges
;
6:增加使用者
create
user
'root001'@'127.0
.0.1
' identified by 'aa123456';
grant all privileges on *.* to 'root001'@'
127.0
.0.1';
flush privileges
;
7,修改密碼認證方式
alter
user
'root001'@'127.0
.0.1
' identified with mysql_native_password by '
123456
';alter user 'root'@'localhost' identified with mysql_native_password by '
123456';
flush privileges
;
8,php呼叫mysql顯示server sent charset (255) unknown
$ vim my.cnf
[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
[mysqld]
collation-server = utf8_general_ci
character-set-server = utf8
default_authentication_plugin = mysql_native_password
如何報以下錯誤:
出現問題:
error:
failed dependencies:
libnuma.so.1()(64bit) is needed by mysql-community-server-8.0.13-1.el7.x86_64 libnuma.so.1(libnuma_1.1)(64bit) is needed by mysql-community-server-8.0.13-1.el7.x86_64 libnuma.so.1(libnuma_1.2)(64bit) is needed by mysql-community-server-8.0.13-1.el7.x86_64
解決辦法:
yum install numactl
出現問題:
error:
failed dependencies:
pkgconfig(openssl) is needed by mysql-community-devel-8.0.13-1.el7.x86_64
解決辦法:
yum install openssl-devel.x86_64 openssl.x86_64 -y
出現問題:
error:
failed dependencies:
perl(data::dumper) is needed by mysql-community-test-8.0.13-1.el7.x86_64
解決辦法:
yum -y install autoconf
出現問題:
error:
failed dependencies:
perl(json) is needed by mysql-community-test-8.0.13-1.el7.x86_64
解決辦法:
yum install perl.x86_64 perl-devel.x86_64 -y
yum install perl-json.noarch -y
Mysql安裝配置
系統環境 rhel5 最小化安裝,只安裝vi工具 核心 2.6.18 8.el5 cd usr local src tarbag tar xzvf mysql 5.1.38.tar.gz c software cd software mysql 5.1.38 configure prefix usr...
Mysql 安裝配置
my.ini 檔案內容如下 mysql 設定mysql客戶端預設字符集 default character set utf8 mysqld 設定3306埠 port 3306 設定mysql的安裝目錄 basedir f software tools mysql mysql 8.0.15 winx6...
MySQL安裝配置
mysql安裝配置 itstar 2.檢測本地是否有mysql已存在的包 rpm qa grep mysql 3.檢測本地是否有mariadb已存在的包 rpm qa grep mariadb 4.如果存在,則使用yum命令解除安裝 mariadb libs 5.5.56 2.el7.x86 64 ...