I'm using MAMP and OS X 10.10.1 and use Time Machine to backup my local environment. I've recently had several occurances where a database disappears from phpMyAdmin and is inaccessible to my local site but is visible if I connect through mysql on the command line. I do however see that some of the databases are conflicted and are listed like so:
wp_commentmeta
#mysql50#wp_comments (MacBook Pro de...conflicted
wp_comments
What is the best way to get rid of these conflicted files? I think the conflicted file contains the most recent information so I would prefer to keep that if possible.
I'm guessing this is the reason for the tables disappearing from phpMyAdmin?
The error that keeps the databases from appearing indeed seems to be the message itself. Removing the #mysql50# and the conflict message as well as the less recent version of the table will leave the database in its most recent state before the conflict occurred.
Related
I have a very sizeable PHP website with over 100, and some pretty big, MySQL tables. After my host, which was restricting me to running PHP 5.6 and MySQL 5.4 previously, notified me they were canceling my dedicated server in 14 days to move everyone to "the cloud", I had to move hosting site as it needs root access, and essentially upgraded to PHP 7.3 and MySQL 5.7. I went from the loosey-goosey fun mode of MySQL 5.4 to using STRICT_TRANS_TABLES mode of MySQL 5.7 with the new host. So now I'm scrambling to update everything to comply with STRICT_TRANS_TABLES. I don't want to disable STRICT_TRANS_TABLES as it is the future. However, even after type settings nearly all data types, there are still some pages that won't save data correctly.
That is to say, the screen refreshes as though is does save correctly, but the values do not actually get written to the databases.
My question is, what's the best way to trouble shoot such tables that aren't saving the values passed? Is there an error log I can enable or some debugging tool? Or is it just a matter of eliminating variables until I find the 'trouble child' (as I'm doing now, but it's a long and tedious process as the tables are large)?
I am currently running phpMyAdmin 4.7.1 against a mySQL 5.6.16 database on my Mac (El Capitan). Everything worked well, but in order to upgrade my test Moodle database, I had to upgrade my PHP installation from 5.5.38 to 5.6.30, which I did using the excellent installation instructions here (https://coolestguidesontheplanet.com/?s=El+Capitan+php). HOWEVER, as soon as I did so, my phpMyAdmin began behaving oddly. I can still log in, list table structure and browse contents, but then I run into problems.
ONE: When phpMyAdmin lists contents of a table, the select * from SQL is shown in the window at the top of the page. If I "refresh" this -- i.e., running SQL which phpMyAdmin successfully just ran, the window hangs with a message that it is trying to contact my Mac server (by name), then goes blank.
TWO: If I try to export table contents using the phpMyAdmin option, the window also hangs with the contact message, then goes blank.
There are no messages in /var/log/apache2/error_log, in /var/log/mysql/mysqld.error, or in /var/log/php/php_error.log. There are no messages in the system.log, so I am stuck without a clue as to the issue.
Replacing PHP 5.5.38 as my PHP engine makes phpMyAdmin work (but I can't use this version going forward because it doesn't work with other software I need to develop).
I have compared the php.ini files and extension files as much as possible, but I cannot find where the pertinent lie, other than that I am using a stricter developer version of PHP 5.6.30 than I was for PHP 5.5.38. Infrequently, the export will work -- so I must have a permissions issue or a resource issue in my environment.
Any suggestions will be greatly appreciated.
Try to export the specific tables, and not the entire database at one go, or just use mysql workbench.
then try and install another php with the phpmyadmin server.. do backup your database you can get that from C:\xampp\mysql\data for windows user.
I have installed the last version of XAMPP for MAC OS, Apache runs without any problems, MySQL too, but when i attempt to create, edit, or import smth, always appears error with MySQL answer: #1932 - Table 'phpmyadmin.pma__tracking' doesn't exist in engine.
Notice, that i didn't edit configuration files, this error started appearing after installing program.
Tried to find answer everywhere, but without result. All information i found was devoted to error #1146, but i think that it isn't the same one...
Thanks!
It seems like, the database you have selected is 'phpmyadmin'. Where there is no table with name 'pma__tracking'. Hope you should select another database.
Total beginner to the world of MySQL and PHP (using MAMP).
Very simple question which I can not seem to find the answer to anywhere.
I have created a MySQL database (called user_info) in terminal under the 'root' user on 'localhost' with all permissions/privileges granted, when I access PhpMyAdmin as root user on localhost (which is what it says under the database server pane) I can't see the database I created in terminal in the left hand pane or under the databases tab of PhpMyAdmin ?
The question is really whether the databases created in terminal should reflect in the databases section in PhpMyAdmin or is this a total mis-understanding of the way it all works on my part ?
Any advice or explanation would be greatly appreciated !
Kind regards
It looks like you have two MySQL installations on your Mac. MAMP comes with MySQL and it looks like you also installed another MySQL outside of MAMP. This explains the two different data directories -- the MAMP MySQL is using /Applications/MAMP/db/mysql/ and the other installation is using 'usr/local/mysql/data/`.
Pick one to keep and remove the other one. You can force your client to connect to whichever one you want, by specifying the port or socket each one is using to listen for connections, but unless you have a specific reason for wanting to run two MySQL instances, it's going to be less confusing to remove one. Just make sure you don't have any stored data that you wish to save (or export/dump it to SQL first).
I came across the same issue when playing with MAMP.
And I finally find out that I have two MySQL installations on my Mac, just like Issac said.
One is installed individually, under /usr/local/mysql, and the other is installed together with MAMP, under /Applications/MAMP/Library/bin
So to see what is seen in phpmyadmin, I need to connect with the MAMP one.
hope this helps.
So basically I've created a MYSQL database that holds information about a gaming server player information, it's loaded into this PHP website that I created just 2 days ago (I'm completely new to PHP, I only started experimenting on it 2 days ago). So I had it all fixed up but on a localhost, it could fetch the data from the mysql database but only in the localhost, today I wanted to host a free mysql hostname is: fdb3.runhosting.com username: 1141497_damagedz and ofcourse I know the password. But when I'm trying to type this in via my PHP code in the db_connect line it gives me error saying it fails to connect at line 13 which is the line of $db_connect line, before it did work under the localhost but just now it doesnt work because I've deleted 3 files from xampp but surely that shouldnt matter now since its hosted on a whole different place like fdb3.runhosting.com ??
Also I'm using Adobe Dreamweaver to make the PHP website, before I just had to type in
http://localhost/tester.php
to open up my tester.php website that I've been working on, but now after I deleted the xampp it wont open this so I can't really tell what I'm doing or does it work or not, this is after I deleted my xampp, which is after I deleted my 3 files from xampp. So you can see i'm really confused and I do not know how to fix this at all, I don't know why db_connect at php gives me errors when clearly my fdb3.runhosting.com mysql database works just fine... I've created tables there too. Also how may I run my tester.php file without the localhost? Please tell me I'm really confused and really need help, thank you!
"I've deleted 3 files from xampp but surely that shouldnt matter"
Which 3 files and how do you come to that conclusion? Everything you say tends to indicate the reverse to be true!
Re-install XAMPP is the logical first option. Backup your htdocs folder then re-install. Don't know if you'll need the backup or not (I suspect not)
I agree with David.
It is highly unlikely you can use the remote database at fdb3.runhosting.com using PHP scripts on your local computer. XAMPP includes a MySQL database server and had you not deleted phpMyAdmin you would be able to use that to browse the databases on it.
Develop the website on your local XAMPP install and local XAMPP database, then export the database to the remote host and copy the files across when you are ready to view it online.
It's also worth keeping the XAMPP install folder and others because it contains information on XAMP and I believe allows you to check whether the version you're running is the latest one.