随笔分类 - mysql
摘要:master: mysqldump -uroot -p --databases perceive >/app/backup/perceive.sql tar -zcvf mysql.tar perceive.sql slave : stop slave;CHANGE MASTER TOMASTER_
阅读全文
摘要:update mysql.user set authentication_string=PASSWORD('passwd') where User='root'; flush privileges;
阅读全文
摘要:1 查看是否开启远程连接(拿root用户举例) use mysql; select host, user from user; 以上便是开启远程连接,如果依旧不能连接,参考如下: grant all privileges on *.* to root@"连接IP" identified by "密码
阅读全文
摘要:#!/bin/bash rm -rf *.sql sleep 3 /usr/bin/mysqldump -u (用户) -p(密码 ) --all-databases --add-drop-database -S /tmp/mysql3008.sock --single-transaction -R
阅读全文
摘要:1 vim backup.sh #!/bin/bash /usr/local/mysql/bin/mysqldump -uroot -p(数据库密码) --all-databases --add-drop-database -S /tmp/mysql3008.sock --single-transa
阅读全文
摘要:mysqld --initialize-insecure --user=mysql --basedir=/usr/local/mysql/dbs3008 --datadir=/data/mysql/data3008/ (跳过初始化密码,直接无码登录)
阅读全文
摘要:修改/etc/my.cnf [mysqld] #下添加: default-storage-engine=InnoDB
阅读全文
摘要:https://blog.csdn.net/qq_41786285/article/details/109304126?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearn
阅读全文
摘要:在从库执行 # stop slave; # set global sql_slave_skip_counter=1; # start slave; 这只是暂时的,错误之后可能还会报出,一定要从根部找出原因去解决。
阅读全文
摘要:windos 可以访问链接下载 , linux可以用wget 进行下载 http://nchc.dl.sourceforge.net/project/amoeba/Amoeba%20for%20mysql/3.x/amoeba-mysql-3.0.5-RC-distribution.zip (如果下
阅读全文
摘要:SELECT COUNT(*) TABLES, table_schema FROM information_schema.TABLES WHERE table_schema = '库名';
阅读全文
摘要:1 赋予指定用户权限 grant select,insert on *.* to 'shop'@'%'; 2 查询指定用户权限 show grants for shop; 3 撤销指定用户权限 REVOKE ALL ON *.* FROM 'shop'@'%'; 附上一条链接仅供参考:https:/
阅读全文
摘要:1.cli模式下登录mysql mysql -uroot -p 然后执行 show processlist; 此命令可以查到mysql正在运行的一些进程,最前面有进程的id 2.使用mysqladmin杀死相应的id mysqladmin -uroot -p kill id
阅读全文
摘要:https://www.cnblogs.com/chenmh/p/5300370.html
阅读全文
摘要:https://www.cnblogs.com/wangbaobao/p/7087032.html
阅读全文
摘要:1 https://blog.51cto.com/lizhenliang/1362313 (只做参考!!!挺靠谱的。)
阅读全文
摘要:grant all privileges on *.* to 'yangxin'@'%' identified by 'yangxin123456' with grant option;
阅读全文
摘要: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 ;
阅读全文