• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

Mysql Scalability(六)Mysql Trouble Shooting_mysql

mysql 搞代码 7年前 (2018-06-07) 168次浏览 已收录 0个评论

mysql Scalability(6)Mysql Trouble Shooting

Mysql Scalability(6)Mysql Trouble Shooting

Error Message
ERROR 2013 (HY000): Lost connection to MySQL server during query

Remove and reinstall the mysql again.
>sudo apt-get autoremove –purge mysql-server
>sudo apt-get remove mysql-server
>sudo apt-get autoremove mysql-server
>sudo apt-get remove mysql-common

>sudo apt-get install software-properties-common
>sudo add-apt-repository ppa:ondrej/mysql-5.6
>sudo apt-get update
>sudo apt-get install mysql-server

drop the database and create it again.

>drop database sillycat;
>create database sillycat;
>use sillycat;
>create table branduser(id int primary key, username char(255), age int);
>insert into branduser(id, username, age) values ( 1, “sillycat”, 32);

Then configure them to be master/slave.

The master/slave stop after I restart the server. So we need to turn on the master/slave again.

References:
http://www.mysqlperformanceblog.com/2008/07/04/recovering-innodb-table-corruption/

欢迎大家阅读《Mysql Scalability(六)Mysql Trouble Shooting_mysql》,跪求各位点评,by 搞代码


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Mysql Scalability(六)Mysql Trouble Shooting_mysql

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址