# Restore a database from a dump .sql file
MysqL -h mdbec-db1 -u wpadmin -pwpadminpass wpdb < ./wpdb.sql
# Percona XTradB Cluster start commands
/etc/init.d/MysqL bootstrap-pxc service MysqL bootstrap-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;
转载于:https://www.cnblogs.com/jeffreyf/p/percona-mariadb-MysqL.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。