Flux rss

PhpMyAdmin - Access denied for user root’@localhost

Published by jak58, last update on Tuesday October 14, 2008 02:47:11 PM by jak58

PhpMyAdmin - Access denied for user root’@localhost





Beginners may face the problem of accessing MySql by the root user. This issue happens when the root requires you to insert a password and the user has either entered a wrong password or has not provided any. This can be easily configured by the following steps:
  • Step1: Open MySql
  • Step2: Through the phpMyAdmin/librarires, you should edit the config.inc.php. where it is displayed $cfg['PmaAbsoluteUri'] = ''; alter the command to $cfg['PmaAbsoluteUri'] = 'localhost/phpmyadmin/';
  • Step 3: Concerning the server commands, edit $cfg['Servers'][$i]['host'] = 'localhost'; and alter it to $cfg['Servers'][$i]['host'] = 'Localhost';
  • Step 4: To enter your new password for the root user, choose the command $cfg['Servers'][$i]['password'] = ''; and enter your password in between the fields provided.


For example:

$cfg['Servers'][$i]['password'] = 'type your password here';
  • Step 5: After this procedure, do not forget to reboot MySql

To reset the rights of the root user


To be able to reset the rights of the root user, you should enter the following commands
mysql> GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY ' your current password ' WITH GRANT

Insert the host and password


This section will allow you to insert the host’s name and user account by default and set them with the correct password allocated to them in the php.ini folder. To do so, use the code below:

; Default host for mysql_connect() (doesn't apply in safe mode).
mysqli.default_host ='localhost'

; Default user for mysql_connect() (doesn't apply in safe mode).
mysqli.default_user ='root'

; Default password for mysqli_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
; and reveal this password! And of course, any users with read access to this
; file will be able to reveal the password as well.
mysqli.default_pw =' your current password '
Access denied admistrator Hello, Not sure if my last message was posted. Just joined today. I'm running Windows XP since 2004 and are the administrator. I'm trying to remove some start up menu items and get the error message: ACCESS DENIED: YOU MUST LOG IN AS... en.kioskea.net/forum/affich-15937-access-denied-admistrator
Server Response: ERROR 554 - RELAY ACCESS DENIED Server Response: ERROR 554 - RELAY ACCESS DENIED Your email client displays the following error: Error 554 - Relay Access Denied This is to the use of an outgoing server (SMTP) outside the provider field. Due to spam, SMTP... en.kioskea.net/faq/sujet-1200-server-response-error-554-relay-access-denied
Server Response: Error 554 -Relay Access denied Server Response: Error 554 -Relay Access denied Below error message appears on your screen before your connection: Error 554 - Access Denied Relay This may be due to the use of outgoing server (SMTP) on field outside provider.... en.kioskea.net/faq/sujet-952-server-response-error-554-relay-access-denied
Access the hidden Administrator Account in Windows VistaAccess the hidden Administrator Account in Windows Vista Why has the Administrator account been disabled in Vista? How to activate the Administrator Account Solution 1: Through User Account Control Solution 2: With Command Prompt Solution... en.kioskea.net/faq/sujet-300-access-the-hidden-administrator-account-in-windows-vista
How to access your BIOS set upHow to access your BIOS set up Depending on your computer model, the way you will access your BIOS set up menu will differ. Here is a list of the most common models used and the access key used for this process. ACER You can make use... en.kioskea.net/faq/sujet-283-how-to-access-your-bios-set-up
Accessing Safe Mode without key F8Accessing Safe Mode without key F8 Introduction Explanation Introduction Safe mode is the windows maintenance mode of a computer operating system. You can access your computer to diagnose problems on your computer. Below is a tips of how... en.kioskea.net/faq/sujet-628-accessing-safe-mode-without-key-f8
WIndows Service Pack 3 - Access DeniedHey people I just bought the new GTA 4 and it apperently needs service pack 3, so i downloaded it from microsoft download center but in the middle of the install it stops and says access denied. It then continues to remove the service pack again and... en.kioskea.net/forum/affich-42717-windows-service-pack-3-access-denied
"Access Denied" msg - Pendrive not openiHello, When i try to open my 4GB Transcend Pen drive on my PC Its giveing me the error msg as "F:\ is not Accessible", "Access Denied". The properties of the pen drive shows me as 0 Byte (Used space & free space). But When I try to open this pen drive... en.kioskea.net/forum/affich-46132-access-denied-msg-pendrive-not-openi
How to open Access Denied websitesHello, Hay dear, In my office most of the sites like yahoo, orkut, gmai, indiatimes are banned. When I am go to this sites it shows Access Denied Can anyone please help me to solve this problem. regards Bhushan en.kioskea.net/forum/affich-35530-how-to-open-access-denied-websites
YouTube access blocked in China after Tibet clips appearThis file photo dated shows a web page from www.youtube.com displayed on a computer screen in Hong Kong. Access to YouTube in China was denied on Sunday after footage of recent deadly protests in Tibet appeared on the video posting site. Access to... en.kioskea.net/actualites/youtube-access-blocked-in-china-after-tibet-clips-appear-10211-actualite.php3
Attacks - Denial of service attacks A "denial-of-service attack" (abbreviated DoS) is a type of attack that aims to make an organization's services or resources unavailable for an indefinite amount of time. Most of the time, these attacks are aimed at a company's servers, so they may... en.kioskea.net/attaques/dos.php3
Computer - The Printer The printer is a peripheral that allows you to make a print-out (on paper) of computer data. There are several printer technologies, the most common of which are: the daisy wheel printer the dot-matrix printer (also called impact matrix printer) the... en.kioskea.net/pc/imprimante.php3
Computer - Random access memory There are generally two broad categories of random access memory: DRAM memories (Dynamic Random Access Module), which are inexpensive. They are used essentially for the computer's main memory SRAM memories (Static Random Access Module), which are... en.kioskea.net/pc/ram.php3