xammp and wordpress installation for the first time - php

I had already installed mysql ,and later i installed the xammp the apache is starting but mysql is not starting so i changed the port to 3307,cahging the port from 3306 to 3307 helped to start the mysql,the next problem i faced was while installing wordpress, i created a database and even after filling in the username password and host detalis correctly it says "Error establishing a database connection" in the root directory of wordpress there is a file 'wp-config-sample.php'.
How do i establish connection with the mysql database?

Related

WAMP server PhpMyAdmin not authenticating with valid credentials

WAMP server MySQL is working fine in CLI. But PHPMyAdmin is not working. I had MySQL and workbench installed with 3306 port (before I install the WAMP server). This is why My WAMP server MySQL wasn't working, I changed the port to 3309 in MySQL my.ini file, it's working fine in CLI but not working in PHPMyAdmin.
I have already tried alter user 'username'#'localhost' identified with mysql_native_password by 'password'; still not working in with PHPMyAdmin but CLI. I don't want to downgrade my MySQL version.
MySQL Version 8.0.21
ERROR:
If you must have 2 MySQL instances running then use the features built into WAMPServer to amend the MySQL port number
RIGHT Click on the WAMPServer icon in the system tray and click the TOOLS menu item
See below, then click on "Use port other than 3306" and WAMPServer will update ALL the required files so that you can use a non standard port for MySQL
Search for libraries/config.default.php
and change
$cfg['Servers'][$i]['port']
it should be empty default is 3306 and add 3309
Addinally you have to run the installer again
executing the install file
select "Reconfigure" over the mysql server
In Authentication Method tab, select "Use Legacy Authentication
Method"
You can choose at the beginning the MariaDB server and on username type root, and password remains empty, after once you will be connected with Maria Db, switcher to MySQL ,
screenswitcherserver
and do the same thing side username and password

XAMPP - Error establishing a database connection after changing port

MySQL shut down unexpectedly on XAMPP. Then I changed the port number 3306 to 3307 to both my.ini and config.inc.php file.
Now MySQL is running and localhost/phpmyadmin/ also running.
But my WordPress website not showing. The problem is -
Error establishing a database connection
Probably you've forgot to change MySQL port in the wp-config.php file in your WordPress website folder.

Access denied While using phpmyadmin XAMPP

I have installed XAMPP on windows 10 but cannot open phpMyAdmin. I had to change Apache port 443 to 4433 because of conflicts and now both apache and mysql are running. When I click on phpMyAdmin on my server it gives me the following message in a pink box:
MySQL said: Documentation
Cannot connect: invalid settings.
mysqli::real_connect(): (HY000/2002): No connection could be made because the target machine actively refused it.
Connection for controluser as defined in your configuration failed.
mysqli::real_connect(): (HY000/2002): No connection could be made because the target machine actively refused it.
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
I've read the questions on similar problems but they mostly happened when someone changed the password, but for my case, the user is set to root and the password is empty both in MySQL server connection and in the config.inc.php file. I have no clue where to look for the problem.
What version is your XAMPP? Try going to task manager, locate mysqlI and end task. Now close the XAMPP window and open it again. Go to Mysql and try test the connection by connecting to the database on port 3306. If it gives en error check the error log in the XAMPP.

mysqli_real_connect(): (HY000/2006): MySQL server has gone away

I am having an issue with logging into phpMyAdmin.
I have simply install xampp.
when i launch the Xampp server it show me port error for 3306
so i have change the port from 3306 to 3307
in my.ini file and
config -> Service and Port Settings -> Mysql port Tab
Service Setting of Xampp Control Panel
Then i was able to start SQL server
when i try to open PhpMyadmin it show me error like this
than i change in config.inc.php
config.inc.php
Now when i try to open PhpMyadmin it ask me for username and password
Username - root
Password - Null
it show me error like this
Error while login in PhpMyadmin
Please Help me to find an issue
Thanks in advance
Since you are in the very early stages of using xampp and
NO development has been completed;
Uninstall xampp and remove ALL the MySQL* programs, Shutdown/Restart Windows 10.
Reinstall xampp. Verify functionality.
For additional assistance, view my Profile, Network profile, for contact information including my Skype ID and get in touch with me, please.

never ending database configuration in 'joomla' installation and can't access phpMyAdmin

Im trying to learn developing a simple website using Joomla 3.4.4. I Installed Xampp and joomla. I changed the ports in 'apache' and 'mySQL' from Xampp Control panel. (changing the port httpd.conf file to 8080, port in httpd-ssl.conf file to 4433 and respective one in mySQL to 33066). I can access localhost:8080 and view the home page. But when installing the the joomla on xampp server (after extracting the joomla files to htdocs folder) the first installation page is perfectly loaded and information is asked about the site. When the But in 'database configuration' phase's progress bar never ends. I can't go beyond that. Information provided in database configuration phase is as follow:
database type: MySQL
Host Name : localhost:8080
User Name : root
password : password
Database Name : joomla17
Table Prefix : jj_
There's another problem that was arisen with this installation. Even though I can access localhost:8080 page, I can access phpMyAdmin. It says these errors:
MySQL said: Documentation
Cannot connect: invalid settings.
Connection for controluser as defined in your configuration failed.
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
Please Help me with these issues.

Categories