随笔分类 - mysql
摘要:https://www.cnblogs.com/uphold/p/11221179.html (照着链接里面做吧!)
阅读全文
摘要:1 chmod +x /etc/init.d/mysqld 2 chkconfig --add mysqld 3 chkconfig mysqld on
阅读全文
摘要:stop slave ;set GLOBAL SQL_SLAVE_SKIP_COUNTER=1; start slave ;
阅读全文
摘要:首先安装mysql5.7 过程略过 配置主的/etc/my.cnf server-id=1 #binlog-do-db=master#binlog-ignore-db=mysqllog-bin=mysql-bin#binlog-ignore-db=sysexpire_logs_days=7 (自动清
阅读全文
摘要:https://www.cnblogs.com/migongci0412/p/5066749.html 仅供参考!
阅读全文
摘要:systemctl enable mysqld.service
阅读全文
摘要:http://note.youdao.com/noteshare?id=ad69f832c3ee83be61f429dd58c75020&sub=2884A1AF3F3C45A88DE7EE5DE0FB73C7 其他版本升级过程大同小异
阅读全文
摘要:CREATE DATABASE yshd DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; 创建数据库 grant all privileges on vjk.db .* to yshd@'%' identified by 'yshd123' w
阅读全文
摘要:grant all privileges on lhywzx.* to 'lhywzx' @'%' identified by 'yshd123' with grant option;
阅读全文
摘要:create user yshd@'%' identified by 'yshd123'
阅读全文
摘要:SELECT DISTINCT CONCAT('User: ''',user,'''@''',host,''';') AS query FROM mysql.user;
阅读全文
摘要:update mysql.user set password=password(‘新密码’) where User=”jeecn” and Host=”localhost”;
阅读全文
摘要:1 登陆数据库 mysql -u root -p 2 use mysql; 3 select User,authentication_string,Host from user (查询用户表) 4 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIE
阅读全文
摘要:https://downloads.mysql.com/archives/community/
阅读全文
摘要:select count(*) from table_name;
阅读全文
摘要:select * from table_name limit 10 order by xxx; xxx 为数据类型
阅读全文
摘要:SET foreign_key_checks = 0; 关闭 SET foreign_key_checks = 1; 打开
阅读全文
摘要:show variables like '%max_connections%'; 查看最大连接数 set GLOBAL max_connections = 200; 调整最大连接数
阅读全文
摘要:mysqldump --databases 库名 >/tmp/backup/xxx.sql (此处为备份目录) 5.7版本不需要指定用户名和密码,将用户名和密码写在/etc/my.cnf中 vim /etc/my.cnf [mysqldump]user=用户password=密码
阅读全文

浙公网安备 33010602011771号