Hi i have installed locally xampp php and mysql. Im reading and it says about having a username and a password. I dont login at all, i just press start to both apache and php. How i put a username and password?
I know it might be a silly question but i have googled and i dont understand... how to do it and if i can do it locally.
Thanks!
apache or php do not have credentials, only mysql has. usually with xamp comes phpmyadmin which lets you manage users for mysql, too. In my case, it was preconfigured just to work. user for mysql was root, password blank. Maybe you should change that ;)
Access phpmyadmin via http://localhost/phpmyadmin/
In the directory of phpmyadmin (called phpMyAdmin in your xampp dir) there is a config.inc.php where the username that phpMyAdmin uses is configured. If you change the password via phpMyAdmin you have to edit it here, too.
Related
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
I'm doing small system with PHP/MYSQL. From XAMPP security module I gave a password to access the phpmyadmin. The same password I am using in the config file of my PHP. Yesterday my boss came up with a paculiar request ( it's an order basically) :). The request is he should be able to set the password and change the password of phpmyadmin when ever he wants. Now I can give him access to XAMPP security, but if he change the password I need to change password in the config file of my php also. Or else I will get error in my PHP program. I'm just a developer, don't know much about server configurations.
I am trying to get Wordpress working locally on my Mac. I've downloaded and installed Xampp and also the Wordpress module. But I'm not sure where to go from here, to actually get Wordpress working.
When I try to reach 127.0.0.1/wordpress/ and localhost/wordpress/ I only get the message "Error establishing a database connection".
I can reach PhpMyAdmin, enclosing a screenshot.
Screenshot from phpMyAdmin
I have no clue where to go from here. Do I need to make changes in some conf-files or something? This is the first time I'm doing this so sorry for noob questions, I'm not really a programmer, just want to be able to build my Wordpress sites locally... :)
You need to create a database within PHPMyAdmin, and then configure wp-config.php with the database information. By default, you may only have a file called wp-config-sample.php. Rename the file, and remove -sample from the file name.
The host name will be "localhost", since the database is locally hosted.
The username will be the username to phpmyadmin, and the password will be the password for that account.
The database name will be the database name that you chose.
The prefix can be left alone, as the default is just fine. :)
I've done a mistake and would be really thankful to get help.
I've been using MAMP to create a wordpress website on my computer. Today I've been trying to move in to the actual hosting and I guess I've somehow damaged the database.
The thing is that the default username and password are "root" and i wanted to change that before downloading database from the local server. I did, and after that i couldn't use phpMyAdmin, it suggested me to check config.inc.php. I went to this file and there in the code there were still default "root" username and password.
I changed them to the new ones (the same i used before) and it helped, but only to a certain extention. Now i can use phpMyAdmin, but don't have the rights neither to create a new database, nor to make any changes to the user privileges.
So the question is: how to make it all working as it was working before? :)) Thanks a lot in advance!
The second little question is:
Are there any possibilities to upload and use this messy database to the actual server? Otherwise none of the settings on my website is working and i kinda have to restart making it.
Since you can't do much from within phpMyAdmin, it sounds like you may be logged in as the anonymous user, which happens if you try to log in and don't match an existing username/host. Double-check that the username and host you're logging in as are the ones configured in MySQL. You may need to reset your account. Even though the error message is different (due to the use of the anonymous user), this may be helpful: Fix Access denied for user 'root'#'localhost' for phpMyAdmin
If your auth_type is 'cookie' or 'http' then you don't need to edit config.inc.php with your new login information (since config.inc.php shouldn't have it in at all, the user and password fields are only used with auth_type 'config'), only enter it when prompted at login.
I would like to know about the Wamp server #1045 error on my machine. few days back i had installed my Wamp server and it was working fine like loading PhpMyAdmin, creation of database, localhost etc. i even performed some basic practices in Php.
Later on i learnt to change the password of MySQL via MySQL CMD and i performed the same. After that when i tried to load the PhpMyAdmin again, it showed me error #1045 access denied.
I tried to perform many thing but no respite from the pains. I tried to perform some fixes in phpmyadmin/config.inc, some setting in ctrl panl- Admin tools-Services-mySql (Start and stop)..
May i know what has happened to this and how to solve this problem. Thanks for help in advance.
You are basically giving yourself the answer inside your question.
You changed the mysql password. With which you most probably mean that you changed the mysql root user password. Since phpmyadmin is a mysql GUI (graphic user interface) it is only understandable that phpmyadmin can not function anymore because you haven't told it the new password you set. Just login to phpmyadmin by using 'root' as user and the new password you set. Works?