I get database from server linux debian /mnt/var/lib/mysql/directorybase the files frm and copy the directorybase in C:\wamp\bin\mysql\mysql5.6.17\data
my local machine wampserver but I get this error in phpmyadmin when I access my table in phpmyadmin then error message
#1146 - Table 'avvvc' doesn't exist.
File log I have this:
[Warning] InnoDB: Cannot open table avis_prod/sib_model_forms from the internal data dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem.
Related
I moved my WampServer www and SQL/data to Dropbox, and WampServer was working fine like this.
I noticed I was using an old version of WampServer on my desktop, while using the latest version of WampServer on my laptop.
I uninstalled WampServer on my desktop, and installed wampserver3.0.6_x86_apache2.4.23_mysql5.7.14_php5.6.25-7.0.10 on my desktop.
I edited my.ini: datadir="D:/Dropbox/WAMP/SQL"
When I load http://localhost/phpmyadmin in my browser, I attempt to login, but receive the error:
No connection could be made because the target machine actively
refused it. — The server is not responding (or the local server's
socket is not correctly configured).
If I check C:\wamp\logs\mysql.log I see:
wampmysqld: Table 'mysql.plugin' doesn't exist
2017-04-15T11:43:23.372042Z 0 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2017-04-15T11:43:23.373043Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2017-04-15T11:43:23.378046Z 0 [Warning] Failed to open optimizer cost constant tables
2017-04-15T11:43:23.384551Z 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
2017-04-15T11:43:23.386553Z 0 [ERROR] Aborting
If I look in the folder D:\Dropbox\WAMP\SQL\data\mysql, I see the files:
plugin.frm
plugin.MYD
plugin.MYI
user.frm
user.MYD
user.MYI
If I run the following in a cmd window:
C:\wamp\bin\mysql\mysql5.7.14\bin> mysql_upgrade.exe
I receive the error:
mysql_upgrade: Got error: 2003: Can't connect to MySQL server on
'localhost' (10061) while connecting to the MySQL server Upgrade
process encountered error and will not continue.
If I go to System Tray > Wamp > MySQL > Version, I see only one option: 5.7.14.
If I try to start MySQL from Wamp icon, or services.msc, it won't start, and the errors above repeat.
Update: if I run http://localhost/phpmyadmin on my laptop, which uses www and SQL data in Dropbox too, phpMyAdmin produces no error, and detects the databases fine, and lists them down the left hand side.
What do I need to do from here?
My system was crashed. I try to import my database from .frm files.
I copied those files to my new mysql server location . '/var/lib/mysql'.
I gave the change the priviledge. I had one database.
I just compied the following files to my database foloder name 'my_school'.
ibdata1
ib_logfile0
ib_logfile1
I copied the whole folder to mysql folder location in ubuntu 14.04, /var/lib/mysql
I gave the privileges to this folder using this command.
chown mysql:mysql /var/lib/mysql/my_school -R
Then, I try to access the database. I can access the database. I can see the tables. but, it give error when I try to see the table structure or data.
the error it show this is.
ERROR 1146 (42S02): Table doesn't exist but both table files (frm, ibd) exists on the file system
I used these solutions, these solution doesn't work.
MySQL > Table doesn't exist. But it does (or it should)
MySQL > Table doesn't exist. But it does (or it should)
Please, help.
Is .frm file contain both data and structure of the data ?
what is purpose of ibdata1 file?
what is purpose of ibd_logfile0 and ibd_logfile1 ?
My ownlcoud server is reporting "Connection refused error". A close inspection by phpMyAdmin showed that some tables in mysql database are corrupted.
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.procs_priv repair Error Incorrect information in file: './mysql/procs_priv...
mysql.procs_priv repair error Corrupt
mysql.slow_log repair Error Incorrect information in file: './mysql/slow_log.f...
mysql.slow_log repair error Corrupt
The owncloud db is fine. I do not know how to fix these tables (Google returns very conflicting results and several entries here are not answered). Is it possible to repair them (phpMyAdmin and mysqlcheck could not)? Can I reset this db to start afresh? Thank you.
use below query to repair your table
repair table table_name use_frm;
OR
You need to replace that frm from another one with same table structure.
I have just reinstalled WAMPSERVER without backing-up the data folder of MYSQL under WAMPSERVER, with the understanding that uninstalling and re-installing WAMPSERVER would leave the data directory of MYSQL intact as it is. This was a re-installation of the same WAMPSERVER version.
So now I login to MYSQL, can see all databases and tables from previous WAMPSERVER using SHOW DATABASES, and SHOW TABLES IN myDb. But trying SHOW COLUMNS IN myTable or further attempt to access the data in these tables fails, giving the error:
ERROR 1146 (42S02): Table 'myDb.myTable' doesn't exist
and the logfile:
2013-10-08 14:42:23 1072 [Warning] InnoDB: Cannot open table myDB/myTable from the internal data dictionary of InnoDB though the .frm file for the table exists.
try an CREATE if not exists query, see what output this gives.
I'm (re)installing MySQL 5.5.23 on my Mac (Snow Leopard) and since I have two volumes, one with much more space than the boot volume, I'd like to configure it to write all its data to the bigger volume instead of to the boot vol.
I tried moving the data dir to my other volume and using a symlink to it from the installation directory, but I wasn't able to set the ownership of the symlink to the same ownership as the directory originally had ... and MySQL no longer starts. I can't find logs to see what happens when it tries to startup, but I assume it dislikes something about my present arrangement.
Anybody have experience making this work?
ETA: I found this in my macbook.local.err file:
120423 13:01:21 [ERROR] /usr/local/mysql/bin/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
120423 13:01:21 [ERROR] Fatal error: Can't open and lock privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
...
^G/usr/local/mysql/bin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
120423 14:16:55 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
Edit MySQL's my.cnf file so that it's datadir variable (the data directory, usually /var/lib/mysql on Linux machines) is set to a folder of the new volume.