Solved

Error 1045 phpMyAdmin on Window XP localhost

Posted on 2008-10-05
8
1,282 Views
Last Modified: 2013-12-13
Hi,

I am trying to install phpMyAdmin on my Window XP system. Apache server and PHP works fine and MySQL works fine by itself.
This is what I have done
1) I downloaded a  phpMyAdmin-3.0.0-english and unzip it in my root directory (Where all my php scripts are saved).
2) I have searched online and followed couple of different methods but so far no luck.
2a) I have went into http://localhost/phpmyadmin/scripts/setup.php and followed using the script method "http://minitutorials.com/apache/phpmyadmin11.shtml"
3) I also tried to manually setup by creating a config.inc.php file but no luck.

Is there anything that I should know or missing. Please guide me as I am a total beginner in setting up MySQL and phpMyAdmin..

Thank you,
S.M.
/**
 * phpMyAdmin sample configuration, you can use it as base for
 * manual configuration. For easier setup you can use scripts/setup.php
 *
 * All directives are explained in Documentation.html and on phpMyAdmin
 * wiki <http://wiki.cihar.com>.
 *
 * @version $Id: config.sample.inc.php 11456 2008-08-05 17:28:28Z lem9 $
 */
 
/*
 * This is needed for cookie based authentication to encrypt password in
 * cookie
 */
$cfg['blowfish_secret'] = 'badeds234'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
 
/*
 * Servers configuration
 */
$i = 0;
 
/*
 * First server
 */
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
 
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
/* User for advanced features */
// $cfg['Servers'][$i]['controluser'] = 'pma';
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
/* Advanced phpMyAdmin features */
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
// $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
// $cfg['Servers'][$i]['relation'] = 'pma_relation';
// $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
// $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
// $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
// $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
// $cfg['Servers'][$i]['history'] = 'pma_history';
// $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
/* Contrib / Swekey authentication */
// $cfg['Servers'][$i]['auth_swekey_config'] = './swekey.conf';
 
/*
 * End of servers configuration
 */
 
/*
 * Directories for saving/loading files from server
 */
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
 
?>

Open in new window

Shortcut-to-phpMyAdminError1045.jpg
0
Comment
Question by:SweetWisdom
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
8 Comments
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 22646029
I must admit It's not very easy to configure them, i may suggest xampp or wamp to be installed as they are bundled...

Well try for the followings:

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'root';
$cfg['Servers'][$i]['extension'] = 'MySQL'

Which php.ini is used in apache (check phpinfo())
Check the error log of apache. What is written there? Also check the php.ini if extension=php_mysql.dll is present.

Moreover, from phpinfo() could you show us the path my php.ini file resides...and set the mysql lines as localshost, user_name, password...And restart the apache service

Hope this helps...
0
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 22646032
those are my username and passwords...root, root:)
0
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 22646037
<<set the mysql lines as localshost, user_name, password
i mean find those lines and add localhost, username and password
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 22646052
<<Also check the php.ini if extension=php_mysql.dll is present.

No need...Sorry, if the above is not present, phpMyAdmin will give a different error; cannot load mysql extenstion...Our case is authentication based...
0
 

Author Comment

by:SweetWisdom
ID: 22646123
Hi jazzllllove,

Thanks for all the solution.. I actually just figure it out. It was that i didn't remove the config.sample.inc from the phpmyadmin folder. Instead I had both config.inc.php and config.sample.inc file inside the folder.

Thanks again
0
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 22646142
np...
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 22910582
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
remote mysql 8 52
PHP Web Development 6 66
Set a time limit on Wordpress Cookie function. 3 47
Mysql query one to many 11 37
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question