I'm having a hard time trying to get PhpMyAdmin to work on Mavericks.
I have enabled PHP in apache by uncommenting the LoadModule directive in /etc/apache2/httpd.conf, I have downloaded and installed MySQL 5.6.17, I have changed the root password, I have downloaded and installed PhpMyAdmin 4.1.13, but when I try to login into phpmyadmin, I'm getting the error:
#2002 Cannot log in to the MySQL server
I can connect to mysql from the terminal without problem, but not from PhpMyAdmin.
Can anyone help me fix this?
Thanks in advance
my problem was that I configured phpmyadmin for a tcp connection, but mysql uses Unix sockets by default.
Related
I Have installed Moodle Version MOODLE_39_STABLE following the original documentation: https://docs.moodle.org/310/en/Step-by-step_Installation_Guide_for_Ubuntu
During the installation of Moodle, I am facing the issue
Error: database driver problem detected.The site administrator should
verify the server configuration PHP has not been properly configured
with the MySQLi extension for it to communicate with MySQL. Please
check your php.ini file or recompile PHP.
I have gone through several forums, StackOverflow tasks enabled php7.4_mysql extension uncommented the extension=mysqlnd.so in my php.ini file restarted the apache server but there is no use.
Please let me know what exactly I am doing wrong.
Server: Ubuntu 18.04
Web server: Apache2
Php : Php 7.4
Moodle Version: Moodle 39_stable
It seems you have mysql extension installed and you need mysqli (i stands for improved) extension: https://www.php.net/manual/en/book.mysqli.php
I'm getting below error when I type in localhost/phpMyAdmin after starting apache and mysql server in Xampp in Windows 10.
Is there a way I can fix this issue?
MySQL said: Documentation
#2002 - 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).
Connection for controluser as defined in your configuration failed.
If you are using the Bitnami version of Xampp you will have issues with Windows 10. Download and install an older version from sourceforge.net and it should work. I used version 1.7.3 and so far so good.
http://sourceforge.net/projects/xampp/files/XAMPP%20Windows/
I had the same problem but fixed it by replacing localhost with 127.0.0.1 in the config.inc.php file.
My problem was probably because i had installed bitnami and then later installed xampp. I deleted bitnami, xampp and my temp folder C:\Users\Default\AppData\Local\Temp. It worked fine after reinstalation. thats the only way it worked for me
I installed MAMP successfully and it works just fine, apache, phpMyAdmin, etc...and followed a tutorial video on youtube on how to configure MySQL so I can use it with terminal. In short, I created a
.profile
file in my home directory with this data in it:
PATH=$PATH:/Applications/MAMP/Library/bin
export PATH
When I shut everything down and restarted the server and terminal and typed mysql in terminal, this is what I get:
-bash: mysql: command not found
Does anybody have any idea what my problem might be? I'm using MAMP 2.0.
Any help would be appreciated.
I have updated my XAMPP version to 1.8.2. Now I have the problem that the MySQL Database-server won't start.
If I try to start the Apache Web Server (in 'Application manager'), it says "starting..." and after a few seconds it says "Running". When I do the same thing with the MySQL Database, it says "starting..." for a few seconds and then it says "Stopped".
When I look at the config file (my.cnf), I see this:
# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
socket = /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock
I think the problem is in the socket. mysql.sock does not exist in that directory and not even in the whole XAMPP-directory.
Does anyone know how to fix this?
PS: I have PHP 5.4 installed on OS X.
i had experienced the same error on Mac OS X (10.9) Mavericks i fixed by following these steps
Open terminal and use sudo su
Run ps aux | grep mysql
Kill all process using kill -9 PROCESS_ID
Start your MySQL using control panel
Port 3306 might be used by other process, Can just change the Port number in Xampp mysql configuration and start the mysql.
I had the same experience with xampp but I wasn't performing an update, this was a clean install. I have had good luck running MAMP right out of the box. This isn't exactly a direct answer to your problem, but if you just wanted to install something and get work done, MAMP could be an option. I did a couple of hours of googling and I still haven't figured out the xampp issue here...
I've installed Apache 2.2 and PHP 32bit on a Windows 7 64bit.
I configured properly PHP to run as a module and works like a charm.
Then I've installed MySQL Server 5.1 64bit.
After activating mysql or mysqli, php runs as expected but when I connect to localhost with the browser, the php script cannot connect to the database using mysql_connetc() and it generate a timeout error.
Running phpinfo() it says that the mysql modules are running with no errors.
I've tried to uninistall mysql server win64 and reinstall the same version but for win32.
The same happens.
Googling around I found this post on the mysql forum
http://forums.mysql.com/read.php?11,366955,366962#msg-366962
http://forums.mysql.com/read.php?11,366955,378099#msg-378099
Basically if you do not set in the host file that localhost is 127.0.0.1 windows 7 uses IPV6 address by default for localhost resulting in a connection error.
Adding this to the host file solve the problem:
127.0.0.1 localhost
Have you added appropriate firewall exceptions? can you connect to mysql using the command-line tool or similar?