Begginer Help

Hello, i’m trying to code a website using PHP.

My PHP is up and running, the page works and all.

MySQL should also be working fine, though i don’t know how to check this.

I want to create a registration page for my site. For this, i need to create a database.

I am told i can use PHPMyAdmin to create my database. Tutorials then move on to what you should do with PHPMyAdmin.

I have no clue how to log in to PHPMyAdmin. It asks for a language, a username and password, and i don’t know which.

The amount of frustration resulting from trying to understand what to do now is making me want to jump out the window.

I’ve been googling heavily and found no way out.

Please help, you would save my life by preventing my explosion. I’ve been trying to get coding for days and keep getting stuck on these technical issues, it’s killing me.

Finally fixed it after hours of looking around, posting my solutions here in case it can help someone one day.

The problem was indeed with MySQL.

I uninstalled and reinstalled MySQL using :

sudo apt-get install mysql-server
sudo apt-get --purge remove mysql-server

I also reintalled phpmyadmin :

sudo apt-get install phpmyadmin
sudo apt-get --purge remove phpmyadmin

And finally, I reconfigured Apache2 for phpmyadmin, and then rebooted Apache2:

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
sudo /etc/init.d/apache2 reload

And i could access http://localhost/phpmyadmin by using “root” as username and the password i set up with MySQL upon reinstall.

Sponsor our Newsletter | Privacy Policy | Terms of Service