当前位置:Gxlcms > 数据库问题 > Percona/MariaDB/MySQL

Percona/MariaDB/MySQL

时间:2021-07-01 10:21:17 帮助过:3人阅读

-pxc service mysql start --wsrep_new_cluster service mysql start --wsrep-cluster-address="gcomm://"

# start a PXC node with the specified donor

service mysql start --wsrep_sst_donor=nodeC

# reset password

sudo /etc/init.d/mysql stop
sudo mysqld_safe --skip-grant-tables &
mysql -u root

mysql> update mysql.user set password=password("new-password") where user=root;
mysql> flush privileges;

# grant

show grants;
show grants for ssluser@%;

show privileges

# create user

create user username@localhost identified by password;
grant all privileges on db_name.* to username@localhost;

# view fields related to SSL

 select user,host,password,ssl_type,ssl_cipher,x509_issuer,x509_subject from mysql.user;

 

Percona/MariaDB/MySQL

标签:

人气教程排行