Can't activate MySQL database on XAMPP - php

This seems to be a common problem and I've tried searching for an answer and attempted to fix my problem based on people's answers, but with no success.
The other day, I started my local XAMPP server and MySQL database and tried to access phpMyAdmin, but I got the error "Cannot load mysql extension. Please check your PHP configuration". The MySQL extensions in the php.ini file are all uncommented. I am really lost as to what has happened as it was working properly the day before. If I need to provide any more info, please let me know. Any advice would be greatly appreciated.

XAMPP installs Apache, PHP and Mysql which works out of the box. You must have some other PHP.ini which is interfering with XAMPP. See phpinfo() to find out which PHP.ini is being used.
Check in Program Files if PHP is installed separately. Remove this one.

Related

Need help in configuring WAMP (phpMyAdmin)

So I have been looking on the net for hours now and I can't solve my problem.
I have wamp installed (WampServer Version 3.1.7 64bit).
I want to open phpMyAdmin through wamp. (I have the phpMyAdmin5.0.2 installed and phpMyAdmin.conf is configured).
I have several php versions installed.(this was done through the process of trying to fix the solution alone).
When I try to open phpMyAdmin I get this error message: [1]: https://i.stack.imgur.com/ZEMaX.png .
I have tried configuring php.ini file (by de-commenting mysqli) it didn't change a thing.
Here's my php.ini file joined in the google drive link: https://drive.google.com/file/d/1fQuVoh5vhRX-MHhYL3zMQ4xNkstO-4Ch/view?usp=sharing .
I have configured extension_dir tp the php/ext folder.
I have similary configured my windows path to the php/ext.
Nothing I try works. Any help is welcome.
Thank you.
Since you're using WAMP, which should include all the pieces you need already working, but also have several PHP versions installed, it sounds like you're installing more than you need which is causing conflicts.
Assume you have no data in your database or web pages that you need to preserve, I suggest removing everything; get rid of WAMP and any extra Apache, PHP, or MySQL/MariaDB installations you have. Clean up (delete or move out of the way) any leftover configuration files, then reinstall WAMP. If you have trouble after installing only WAMP and no other PHP installation, then report back here details of the error. WAMP should come to you working and all ready to go, so if there is a problem, it will be helpful to start from a known base installation without extra configuration files or executable that will cause conflicts.
I'll also point out that the very top of the file you posted states that it's used only for the PHP Command Line Interface, so this is not the configuration file used by anything running through your webserver (like phpMyAdmin or your site). It's a little confusing that there are really two PHP instances (one for the command line and one that runs through the webserver), but in this case you would be looking for the file in wamp/bin/apache/apache2.x.y/bin/php.ini

WAMP - phpMyAdmin [Error #2002]

I got this issue unknowingly and its been 3 days for now that this problem isn't resolved.
When I try to access phpMyAdmin it throws a MySQL error #2002. I thought it was the hosts file problem, so I've gone into it and uncommented the "127.0.0.1 localhost", this too doesn't work. Seen all the possible solutions over stackoverflow, done all the trial and error methods, gone through videos, no result. Even I re-installed WAMP thrice, at one stage I removed WAMP totally and installed XAMPP, it's the same result.
Checked the MySQL log file, nothing is in there. Checked the php configuration file, it's all perfect, nothing seems to be in trouble, even uninstalled skype and utorrent. Adding the screenshot for reference. Any suggestions before I format my hard drive would be greatly appreciated. Thanks in advance.
I am not so sure but try this,
You will find a file named "my.cnf" on the same partition you installed wampserver mostly for another server you installed before search for it and delete it...
You can also have a look at this. It have mentioned some useful way.
Access Denied when opening phpMyAdmin

How do I activate mysqli with wampserver?

I've spent over 6 hours trying to connect to phpMyAdmin, and would be pulling out my hair if I had any.
I downloaded wampserver, and have been dealing with issues. After solving about three of them, I finally got phpMyAdmin to pull up, but now it is giving me this error:
The mysqli extension is missing. Please check your PHP configuration. <img src="themes/dot.gif" title="Documentation" alt="Documentation" class="icon ic_b_help" />
I read a lot of the other solutions to this problem and have tried them. Namely the common answer seems to be to uncomment mysqli and a couple other extensions, which I have done.
After hours of trying different solutions, I am pretty stuck and could definitely use some specific answers if any are available.
I was looking at someone else's code, and I noticed that their config file was different then mine when they got it working.
Mine is linked to Windows, while theirs to their php.ini.
Is this potentially the problem, and if so how do I change it?
Here is mine:
Here is theirs:
Also, I can run phpMyAdmin through my hosting, but I need to run php on my localhost. Is phpMyAdmin even needed to do this? I loaded a file and it came up blank, without even posting the code or anything, so this is why I assumed I needed to mess with phpMyAdmin first.
There is a chance that there two installations of php. If not,then check that php.ini file is loading mysqli extension.
click on the icon in the system tray, go to PHP -> PHP Extensions and make sure it is checked
else go to php.ini file any uncomment this line
extension=php_mysqli.dll
If you get such an error without changing any settings of wampserver, just downgrade the php version, then select the version you are using again and it will be fixed.
System tray - Wampserver PHP -> PHP version - 7.4.26 change 7.3.33
Restart all service
Again
System tray - Wampserver PHP -> PHP version - 7.3.33 change 7.4.26
fixed

Sqlrelay framework on PHP environment, inconsistency between web and cli

all.
I'm configured sqlrelay to manage mysql server's pool as the query traffic goes high.
(http://sqlrelay.sourceforge.net/)
I was happy when I successfully installed sqlrelay on my machine, but it does not properly working so far..
For your information, I've installed apache and php, mysql using YUM on centos 6.3.
The thing is, when I see phpinfo() on console (php -i), it prints sql_relay's information in middle of the output. (and query statement using sqlrelay is working well!)
When I see phpinfo() on webpage, however, there is no sql_relay section through the page.. and of cource, query statement using sqlrelay does not working at all.
anyone can help me out to address this issue?
Some time has passed, but here's a suggestion for anyone interested. In the first section of phpinfo() output I'd first check that the php.ini where the module is loaded are included. Depending on the configuration you may have a different php.ini for every virtual host.

Installing php and mysql for Joomla - Can't get past installation

Trying to install Joomla 2.5.7 but I can't get past the Pre-Installation Check as it says: Database support: No
I've got mysql (5.5.24) and php (5.3.15) installed manually on a Linux machine (I don't want to use LAMPP). I've done this a few times before and checked everything is the same with my other working machines in terms of the packages and the php.ini file. I can also access the mysql fine.
Any suggestions on what I can try? Is there a way to find out what check it is failing on?
Argh! I did miss a package. A pretty vital one at that: php-mysql. Don't forget to restart web server.
Joomla checks what databases are supported by testing each type for a connection. One possible issue is that the way you have things set up the owner of the installation process does not have permission to use the databases.
Ooops sorry I didn't see that you had soled
Most CMS come with a sql database setup files. These files must be added to your mysql data. Or tables and users must be manually created.
Have you done this?? If not check manual for details.
http://linuxinternetworks.com/how-to-install-joomla-in-linux/
Comment, after trying, I am reading it too.

Categories