我对MySQL在FreeBSD上有个问题。
它每20分钟生成大量1GB的二进制文件,并且它正在快速地填充空闲磁盘空间。
-rw-rw---- 1 mysql mysql 1073741982 2013-09-14 18:26 mysql-bin.000174
-rw-rw---- 1 mysql mysql 1073741890 2013-09-14 18:42 mysql-bin.000175
-rw-rw---- 1 mysql mysql 1073741988 2013-09-14 18:59 mysql-bin.000176
-rw-rw---- 1 mysql mysql 1
由于InnoDB的一些问题,我打算将所有数据库转储到一个新服务器上:
mysqldump -E -R --all-databases | pv -b | mysql -u root -p -h new.server
转储进程因错误而停止:
59.9kB assword: 59.9kB
ERROR 145 (HY000) at line 2970: Table './mysql/proc' is marked as crashed and should
be repaired
228MB
mysqldump: Got errno 32 on w
我自己的服务器报告“连接被拒绝错误”。通过phpMyAdmin的仔细检查,发现mysql数据库中的某些表已损坏。
Code: Select all
Table Op Msg_type Msg_text
mysql.plugin repair Error Incorrect information in file: './mysql>/plugin.frm...
mysql.plugin repair error Corrupt
我有一个使用MySQL数据库的程序。备份是用mysqlhotcopy --noindices完成的,还原是用myisamchk --recover完成的。
还原时,对于原始索引文件大于2048字节的表,我得到一个错误:
myisamchk: Unknown error 126: '/var/lib/mysql/bak/foo.MYI' doesn't have a correct index definition. You need to recreate it before you can do a repair
下面是一个最小的例子:
$ mysql db <
可能重复:
我有两个mysql数据库。第一个数据库位置是latin1_swedish_ci,第二个数据库是utf_unicode_ci.I,它试图在下面使用tha php代码读取tha数据库。
<?php
mysql_connect("localhost","admin","***");
mysql_select_db("MyDB");
$sql=mysql_query("select * from menu where avail=1");
while($row=mysql_fetch_assoc($
数据库使用正常,配置远程服务器后出现连接错误,不知道是否相关。
数据库URL (my为数据库名):
jdbc:mysql://localhost/my
测试连接时,错误信息:
Connection to dessert failed
java.sql.SQLException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
SQL命令,如: show databases,show not working in MySQL Server8
大家好,我已经在Ubuntu18.04上为我的java项目设置了MySql Server8,可能我在从MySql Server5.7升级的时候遗漏了一些东西。虽然我正在使用它,但我不能发出一些命令:显示数据库,显示表格等。
mysql> show databases;
ERROR 1449 (HY000): The user specified as a definer ('mysql.infoschema'@'localhost') doe
我使用shell中的这个命令修复所有数据库
mysqlcheck -u root -p --auto-repair --check --optimize --all-databases
之后,我重新启动了服务器。
当它再次活着回来时,我试图打开我的vBulletin论坛,但是我收到了数据库错误消息。
也试图打开phpMyAdmin,但我收到了以下错误:
#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured).
我检查了服务列表,发现没有列出
我正在尝试创建一个客户mysql图像从基础图像作为高山。我已经通过apk通过dockerfile为mysql安装了必要的包。我的要求是我想运行一个新的mysql_alpine实例,并在db中创建和修改表。我的数据文件位于/var/lib/mysql/中,并以卷的形式挂载到/ init.sql -entrypoint initdb.d/中。以下是我的dockerfile
FROM alpine
RUN apk update && \
apk --no-cache add mysql mysql-client && \
addgroup mysql