Need some guidance figuring out what went wrong. I've been using mysql, phpmyadmin for just under a year on my home computer while I develop a webapp. 3 days ago I updated my windows vista with all the "wonderful" microsoft updates, security patches, etc...and now it's broke. I tried uninstalling all the upgrades, but there are 4 of them I can't unistall because microsoft says their "operating system" updates and can't be unistalled.
My system is: windows vista, php 5+, mysql 5.1, Apache 2+.
I can run my web app and it queries the database without any problems. However, when I run phpmyadmin to get into the database I get an error: "mysqld.exe has stopped working" and phpmyadmin crashes. I tried going to the command line for mysql to do a mysqldump to backup my database and it gives me an error "2013, could not connect to the server". If I restart the computer the webapp will work again. Basically, php can query the database, but if I try to get at the database through phpmyadmin, or the command prompt the mysqld.exe error occurs and blows mysql out.
Any ideas what's going on here? Any ideas how to get around this to backup the db, so I can reinstall mysql?. I'm really lost where to start. I don't really know if the updates caused the problem, or if the 4 updates that can't be unistalled are really the problem.
Any tips will be appreciated. thanks.
You could try using XAMPP. It has PHP, MySQL, Apache, and other stuff all in one easy to use package.
After a software/ hardware drivers update, it may happened that the service mysqld.exe crashes at each launch (usually with message: mysqld.exe encountered an error and needs to close)
Check the solution described here (it worked for me) if you wish to avoid mysql reinstall.
Related
So I installed mysql server through the command line on ubuntu. But a few days later I installed xampp which includes mysql aswell. I had some problems accessing mysql and phpmyadmin. Turns out the problem was that the previous mysql I had installed would start up and occupy the port that the xampp mysql was trying to access. After killing the process and relaunching xampp I had no more problems. The thing is I would like to uninstall the previous mysql server I installed and only work with the one xampp provides, specially to avoid this from happening again after I restart my PC. Is it safe to uninstall and purge it from the command line? Will the uninstall affect in any way the mysql of xampp? And how can I tell between the two?
I do notice that there is a mysql folder at /etc/mysql with its config file my.cnf. And then there is another mysql folder at /opt/lampp/mysql with only a readme.txt and a folder called scripts which contains a ctl.sh file. But under /opt/lampp/etc I can also find a different my.cnf file. Should I assume that an uninstall or purge command from the terminal will leave the mysql I use of xampp intact? Is it safe to follow any uninstall tutorial?
And finally, if someone can explain this to me I would like to know. Why did this problem arise after I turned off my computer and booted it up again? I was working with xampp and able to access phpmyadmin without any problems. So, how come that when I started the computer today, xampp was unable to launch mysql because the previous mysql was an active process? Does mysql launches itself automatically on boot? Any answer will be deeply appreciated, thank you.
I'm trying to create a dynamic drop down list by requesting data from my database using MAMP.
One of the tutorials I have tried has been talked about already and my version of the code is the same. Dynamic dropdown list with PHP & MYSQL
Although I am under the impression MAMP has a SQL server, I thought the problem was because I didn't have MySQL installed on my computer so I downloaded it, to no avail.
I went into my Task Manager and tried looking for "MySQL service" although I couldn't find the exact tag I did see MySQL Writer is running, but the Browser and Agent INFLOW is not and refuse to start.
I went here into my computer ( c://windows/system32/drivers/etc.host ) and took off the #s that were before
127.0.0.1 localhost
::1 localhost
making sure each remained on a separate line, I restarted my computer but I still can't seem to connect.
Any suggestions on how I may be able to fix this? I am extremely new to PHP and even newer to MySQL so, if possible, please try to keep any solutions simplified so I can follow along.
Not sure what the issue actually was but I ditched MAMP and installed XAMPP and everything seems to be working now.
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 ubuntu server 16.04 running within hyper-v on a Windows 10 computer. I am running LAMP with Apache2, MariaDB, and PHP7.0. I have installed phpmyadmin but when I attempt to call it through my browser I get text, I'm assuming that it is the correct file but it is obviously not outputting the program. These are screenshots of what I'm seeing:
I am stuck at this point and have tried doing just about everything. I've entered the Include statement, as well as configured, updated, and upgraded everything. I started out using mysql but MariaDB seems to be working better. I just want to get phpmyadmin up and working and to put my websites up on the internet. Any help is appreciated.
After doing everything that is listed, I had rebooted and tried accessing phpmyadmin with success, so I'm at loss for words.
I have a VPS running centos 7 in which I have installed Postgresql-9.3. It was running fine for the last one year. Now, when I need to take a backup using pg_dump it is not working. It was working. I used
pg_dump -d <role_name> > <backup_file_name.sql>
It doesn't show any errors. But there is no backup file being created.
SQL Queries are working fine.
Also my project (based on Yii framework) is unable to connect with the database anymore. Shows
CDbException
CDbConnection failed to open the DB connection: could not find driver
It all suddenly happened and I am stuck.
None of the logs give me any hint. Where should I check to find out a solution?
As for second question - seems like you are missing php-postgress drivers, exactly as error message says. You can try installing them back, as described in this question: How do I enable php to work with postgresql?
As for the first - I think that you updated or removed some important packages from your system. Also it could be upgrade consequences.