mysql server rejected the connection php admin requested - php

I'm rather new to PHP and xampp.
I am using my computer for developing java and php now.
So I have a mysql server installed in my computer already.
I installed xampp successfully. But when I'm trying to access phpMyAdmin, it gives me an error saying
mysql server rejected the connection php admin requested
(this not the actual error, but this is what it means..)
I tried stopping my current MySQL service and installing it again.
I tried configuring config.inc.php which I think is the way do this.
But I couldn't do much with that.
Can anyone tell me how to configure and use my computer for php developing keeping my current mysql server unchanged.
thank you.
PS: There is no problem with my current mysql server.It's working fine.
Problem there is I cant use it with phpmyadmin which i installed with Xampp.
I think it is because Xampp have its own mysql server buldled with it and phpmyadmin configured to use it.
That's the problem.
I want to use my current mysql server insted of the one bundled with xampp.

I have successfully resolved my problem.
I stopped my current mysql service and installed xampp.
Don't forget to uncheck where it ask you to install services on insallation wizard.
And then I started mysql service which was installed already.
and edit config.inc.php as below..
$cfg['Servers'][$i]['auth_type'] = 'config'
to
$cfg['Servers'][$i]['auth_type'] = 'cookie'
and you will be prompted to give your current password and username at phpmyadmin login..
Thank you for all guys who tried to help me..

Related

Issue with XAMPP and MySql

I am facing a problem pretty common, I have installed MySql Server because in the past I developed an CRUD app by using Java Swing and Maven, and now I am trying to create same thing, a CRUD app only this time with PHP.
I am following a tutorial from Udemy and this guy is using XAMPP to launch both an Apache Server and a MySQL. But somehow it's interfering with the one already installed on my laptop and cannot make the connection with XAMPP.
I opened my.ini and where says password i put my own from MySQL Workbench, and I see it's using the same port 3306 but still cannot work and I dont know why.
Is there any solution to modify my.ini and establish the connection without uninstalling the MySql Server installed before, because if I do that I ruin the other Java app using it.
Could you please provide the error logs? So the problem can be identified properly. By default, you can get the logs file for Apache in
\xampp\apache\logs\error.log
And for PHP here \xampp\php\logs

"Cannot log in to the MySQL server" without code using phpMyAdmin on CentOS7

I'm setting up a new CentOS 7 server with Apache, MySQL and phpMyAdmin.
The installation of MySQL and phpMyAdmin worked as expected.
For the installations, I used the following guides by Digital Ocean:
MySQL installation guide
phpMyAdmin installation guide
Loging into MySQL on the server works as expected.
However, when I try to log into phpMyAdmin, I only get the "cannot log in to the MySQL server" error, but without a code.
This is a fresh installation of everything, so I am unsure what is causing this problem, since I followed all guides to a t.
Thanks to user xdk over on the DigitalOcean community forums.
They said the following:
Assuming MySQL 8.
ALTER USER root IDENTIFIED WITH mysql_native_password BY 'PASSWORD';
Reason:
Some applications are having trouble with caching _sha2 _password method.
Above sets the credentials to use the native one.
Executing this did the trick.

I want to use PHP to query my current domain SQL server

I have tried everything
Wamp and XAMPP only provide thier own local server and wont let me specify my own server
I have tried IIS and PHP but it doesnt work at all
I would like a simple way to get my SQL server to use PHP in my domain, i dont need it to be remote access yet
Appreciate some hand holding at this point :(
Thanks
Hi thanks for replying
I have explained below what everything meant by using xammp or want iis and php
The server I have is on the Microsoft SQL server management studio
All of the all in one installers will just user local Host and thier own server and database I want to use mine.
Whenever I try using MySQL connection it says it has activley refused connection.
I've added my credentials into the security section on the server. Allowed remote login and specified ports on the server manager program.
Why isn't there a simple step by step program to enable php use on my server and or connect it to my online site..

Login issue in Mysql through Phpmyadmin

I am unable to login to MySQL. I am using Phpmyadmin interface. Please note that it is not #1045 error which has plenty of solutions on the internet including this website. When I try to login it simply shows this error
Cannot log in to the MySQL server
and nothing else no error number or anything else and I'm guessing that my MySQL and PHP server are not starting at all because I also cannot run sites on localhost. I am using WAMP on Windows machine. Please tell me how to solve this problem and I don't want to uninstall and reinstall WAMP because I have not taken backup of all the databases on MySQL and if I uninstall it will delete all the databases. Please help.
Reset your password.
Left click WAMP in your system tray, go to MySQL > MySQL console.
Type the following: SET PASSWORD = PASSWORD('new_password');
For no password: SET PASSWORD = PASSWORD('');
more information here
https://dev.mysql.com/doc/refman/5.6/en/alter-user.html

Set up MySQL Database Connection With Netbeans on Ubuntu

Trying to integrate netbeans with mysql database management into the IDE as explained here.
I am running Ubuntu 11.1 on my local machine with phpMyAdmin.
I have set the usr name and password and the correct port number, but I can't seem to set the path to the phpmyadmin in the admin tab.
I have tried /usr/share/phpmyadmin/index.php as well as /etc/phpmyadmin .. both time I get a permission denied error and I am not entirely sure what file netbeans actually wants to work with.
Any Help would be truly appreciated.. Thanks in advance
You cant run phpmyadmin as a command line tool so the URI you need would be to the installation on the local webserver like http://localhost/phpmyadmin/index.php ... whatever URL you use to access it in a browser on your machine.
That said I dont know why you would use PHP My Admin when you could use MySQL Workbench or one of the other GNOME or KDE admin apps. They are all pretty much superior :-)

Categories