Error phpmyadmin pma__tracking and others does not exist - mysql

I recently downloaded XAMPP on my Mac, running Yosemite. Once installed, I tried to use phpmyadmin. I was able to create a database and in the SQL tab create a Table for the database using the "CREATE TABLE ..." query, but I cannot view that database or any of the databases that came loaded with the program. Anytime I click on the database name on the left hand side, I get an error saying that
"#1932 - Table pma__tracking does not exist in engine"
This error also occurs when I try to run "select * ..." queries from the SQL tab.
I have tried altering the config.inc.php file as suggested in other posts, and this did not work. I tried importing the create_tables.sql from the example folder and it gives the same error.
I am able to write .php scripts to query the database created and to add/retrieve data from it, but I cannot do any of this through the phpmyadmin tool, which would be very helpful, and I think might cause more problems later in my development.
Any thoughts on how to configure/set up phpmyadmin to work as its supposed to?
Thanks in advance.

You have to do both: use the .sql script to create these configuration storage tables, and specify their name in config.inc.php. Afterwards, log out and log in to see the effect.

Related

How to repaire global_priv mysql

When I try to add User account in phpmyadmin then the error appear
Error Message:
Index for table 'global_priv' is corrupt; try to repair it
If you have this problem, phpMyAdmin will be throwing a lot of errors at the bottom of the screen. It will also be showing popup errors asking if you want to Ignore them or Ignore All of them. Ignoring them won't solve the problem, as phpMyAdmin will repeatedly continue to nag you to ignore them.
When you run into this in phpMyAdmin, click on any SQL tab & run this command:
repair table mysql.global_priv;
It will then tell you that the status is OK.
Don't use single quotes around 'global_priv' as MySQL will complain about that.
If you only run this command before running the repair table command, then it will show the errors which are in the table... but it won't fix them for you:
check table mysql.global_priv;
If you re-run the check table global_priv command after the repair table command, then it will say that the table status is OK.
Before fixing the problem, I saw 3 errors in my table using that check table command. After running the repair table & check table commands, all of the errors & warning messages disappeared!
That clears up the errors in phpMyAdmin! You don't need to reinstall XAMPP, nor mess with the file system! Simply run the 1st SQL command & it will fix the problem & remove the annoying warning messages!
select table mysql and then type this query CHECK TABLE global_priv
MySql Error: "#1034 - Index for table 'global_priv' is corrupt; try to repair it"
Let Repair
Step 1:
Open your Xampp control panel and close the MySQL server if running.
Step 2:
Open your Xampp directory and find MySQL named folder in this directory.
Step 3:
Now find a backup named folder and open it.
Step 4:
Now look for a folder named MySQL select this folder and copy.
Step 5:
After copying MySQL folder, return to your previous MySQL directory and open DATA named folder. and paste here your copied MySQL folder.
Step 6:
Now Restart your MySQL server and open your PHPMyAdmin you will see the error is gone.
In my case, mysql doesn't start because of this table corruption, so one cannot run any query on it.
Try to copy table files from initial backup.
Table files are \data\mysql\global_priv.*, move them aside.
Table files backup are \backup\mysql\global_priv.*, copy them to data\mysql.
This should be enough to start mysql service, but all custom global privileges will be lost.
I had to reinstall the XAMPP and the problem has been solved
I´m using HeidiSQL.
Select mysql Database. Right Click, Click on Maintenance
Select Operation = Repair.
Click on Execute.
That solved the problem for me.
In my case just running mysql_upgrade.exe found in \xampp\mysql\bin and restarting xampp and mysql fixed the problem.

MySQL Workbench Data Export error. "Error executing task [Errno 2] No such file or directory"

I have a problem to export a small database using MySQL Workbench's Data Export function on Windows 10.
Previously I have had no problems exporting and importing databases, although after this happened I have changed the security of the server to legacy to get it working with phpMyAdmin using the MySQL Workbench Installer, which I have been unable to change back as when trying to execute the change I got an error stating the installer was unable to create the temporary user (running this as administrator didn't help).
Since then I have also updated MySQL Workbench, the server, and the rest of the components that were installed with it, which seems to have gotten rid of the MySQL Workbench Installer application, as such i am unable to provide the exact error it gave regarding being unable to create the temporary user.
I'm not 100% sure if the above is relevant to the issue but it does seem like it could be related.
The issue that I'm trying to fix is that MySQL Workbench will not export any (or all of) the databases I have set up to a self contained file. The error I keep getting is below:
09:47:47 Dumping va_form (all tables)
Error executing task [Errno 2] No such file or directory: u'D:\Mike\Desktop\Dump20190226.sql'
09:47:47 Export of D:\Mike\Desktop\Dump20190226.sql has finished
I was previously getting a similar error about access denied, which then lead me to change the default dump directory to my desktop, as I'm only going to need to dump files occasionally and sort and send them elsewhere straight away.
I have also tried disabling column-statistics and lock-tables although this has had no effect.
As you can see, at the start of the directory it's trying to dump to it says "u'D:\\" - I am not sure if this leading u is significant, although it is not there in the directory I have specified to dump the file to.
I'm hoping someone here has some insight into this issue, I have no idea why MySQL Workbench's installer was refusing to make the temporary user (even when being run as administrator) and why I cannot find the installer now, as well as the obvious problem of why MySQL workbench is unable to create the file to dump anywhere on the system.
Thanks very much for your time reading this.
It is probably an issue with a recent update of Windows Defender, not with MySQL.
Try to save your dump to folders located somewhere else than Desktop or Documents (I usually send them directly to a cloud service integrated with my OS). If this works, you just need to add an exception for MySQL in Windows Defender.

Mysql is not working correctly

Hello Stackoverflow,
I was trying to connect to my MySQL database through Coda 2. I connected, created a database called 'database1' (for example), then I tried to create a table called 'user', but I get this error:
MySQL said: Table 'user' is read only
I was surprised because it had worked previously with other databases long time ago. I went to my xampp files, //xampp/mysql/data/database1/ and then I found out that user.ibd is there alone. So I first tried to change the properties of the files by disabling read-only. The problem is that when I did that, close the properties windows, and opened again I would get the read-only check box on. So I gave up on that. So I said ok, I will just create the database from my server instead. So I when to phpmyadmin, I see that database1 is created but there is no table called 'user'. So I try to create a table and I get this error:
#1813 - Tablespace for table '`database1`.`user`' exists. Please DISCARD the tablespace before IMPORT.
I then I found out I cannot even do much with phpmyadmin from my server. I tried reinstalling xampp, but it was impossible for me to remove the origianal because it was "already" in use. Please help me and thank you!
EDIT: I can apparently create databases but not tables. Just to clear that up.
You can try using CLI and logged into mysql and create a new database and a table. If it's working, there's something wrong with your phpmyadmin not mysql. Make sure you logged in as the same user (whom have root privileges) when creating the database and table.

#1100 - Table 'pma__tracking' was not locked with LOCK TABLES - PHPMyAdmin, easyPHP

I am trying to simply run a table creation script on PHPMyadmin; using easyPHP. and it is giving me this issue:
#1100 - Table 'pma__tracking' was not locked with LOCK TABLES
When I run the script on WAMP server's PHPMyadmin I do not encounter this issue. the script successfully executes. same script. Same version of PHPmyadmin on both.
I can't find any help on the internet, I'm assuming this has to do with user permissions?
This is the latest version of easyPHP.
Any ideas what creates this error, and how I should go about fixing it?
Look into your phpMyAdmin config.inc.php file, there should be :
/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'your_root';
$cfg['Servers'][$i]['controlpass'] = 'your_password';
Solution is simple,
Open the .SQL file in a notepad and
find
LOCK TABLES
and replace it by
#LOCK TABLES
Open your sql file in any editor
find LOCK TABLES and replace it with #LOCK TABLES

Error in dropping a database in MySQL (can't rmdir '.\oro', errno: 41)

I can't delete a database from mysql. The error is like
ERROR 1010 (HY000): Error dropping database (can't rmdir '.\oro', errno: 41)
I tried to drop the database 'oro' using phpmyadmin and it also showing the same error message and alerts
"DROP DATABASE" statements are disabled.
In my case, I solved the problem by navigating to the folder:
C:\wamp\bin\mysql\mysql5.6.12\data
and remove the database folder which I was trying to drop. That's it.
same error was happening with me in XAMPP
somehow i got a solution
just go to c:/xampp/mysql/data
delete the database folder which you want to delete from PhpMyAdmin then go to browser and just refresh localhost/phpMyAdmin and database will be deleted which you were wishing
The ERROR 1010 you got is occurred When you create a database, a file is created for you. This implies "create database foo" will create a directory foo in your data directory. All table definitions/data for foo are in the foo directory. All these tables are created in the server and their corresponding files are created by the server. If, for some reason, a file is created in or placed in this directory that is not generated by MySQL, the error 1010 will be issued by the server when you drop foo.
and in case when you are trying to drop database using phpmyadmin refer this phpmyadmin enable drop database statement.
Hope this may help you to understand the error.
Mysql generate two file for any table
.frm
.ibd
check in your directory for both file must exist, if any one is missing then remove the remaining one or if you wish you can remove all the file, but be careful this my delete all your data from tables.
This works for me, I hope it also works for you too.
Go to
C:\wampXY\bin\mysql\mysqlx.y.z\data
(XY.. refer versions)
Rename the file you want to delete to anything else.(optional only for special cases)
Now simply delete the renamed file.
try changing the value in config file of phpmyadmin,
$cfg['AllowUserDropDatabase'] = TRUE;
I realize I'm really late to the party, but when I had this issue (and ended up here) I navigated to the directory and actually found a file had inadvertently been created in the directory via INTO OUTFILE without a path, and I'd forgotten about it. MySQL seemed to have an issue because it had not created the file, and so could not delete the directory in question.
If you're using XAMPP just go to C:/xampp/mysql/data/YourDBFolder
After deleting that folder everything should be okay.