WampServer: How to create a new MySql root password? - mysql

I deleted all users from my MySql and got left out. How can I start from scratch? I tried removing the server and reinstalling but apperantly some file remained.

Have you tried the instructions provided here:
http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html

Your answer will be just log on to localhost/phpmyadmin
if it asked login detail just type root as user name and just enter and you will see :
above users tab click on that and you will see users overview :
Click on Edit Privileges in last row of table , then you will see global privileges
check all , and go below you will see Change password and there select change password
and type your password and click on go and you are done :

Related

not able to create new users in mysql workbench but root user works fine

I reinstalled Mysql multiple times but when I try to create a user for example "Test" I get this error
The root user logins fine though.
I found it.
I logged in as root user and then on the left pane under "Navigator" there is "Users and privileges". Select that and then click "Add account". Fill in the details and then come back to home page of the mysql workbench. There you create a new connection and name it whatever you like and then use the username and password you used while adding the account.

How to Reset MySQL Workbench Root Password - Mac

I need help, I forgot the root password, is there a way to reset/change it?
I uploaded some pictures.
1.
2.
3.
I got the same message (Number 2).
Open the keychain app and go to the passwords section. You will see an entry in the list that corresponds to the Service entry, which is shown in your screenshot. Double click it to open its properties, select the checkbox "show password" (or whatever it is titled in your language), enter your Mac password and voilá - there is your MySQL password.

EasyPhp - Receive "Missing Plugin" Error When Attempting to Grant Permissions

I've just installed EasyPHP and in the MySQL section I created a new user called "foo" and checked the box to give it all privileges. When I click on the tab to manage the MySQL user accounts the user "foo" is there. But it shows foo's level of privileges only as "USAGE", and when I mouseover that word it says, "no privileges".
So I tried to update the privileges for foo. But when I try to edit them I get the error
"#1524 - Plugin '*E394918EB0645561038DD951D0CABA8042DDFE14' is not
loaded".
Interestingly, when I go back to the tab for user accounts and mouseover the "root" user it states
"Includes all privileges except GRANT"
Maybe this is why it can't grant "foo" any privileges?
Any idea how to give "foo" all privileges? I'd like to use that as my development account.
PS At the bottom of that page there is a message that says: "
Note: phpMyAdmin gets the users' privileges directly from MySQL's
privilege tables. The content of these tables may differ from the
privileges the server uses, if they have been changed manually."
Could this be a possible solution, and if so, could someone share a link that shows how to change the MySQL privilege table manually?
OK, after hours of searching around I'm getting much closer to a solution.
It turns out that there is an error in the EasyPHP installation package that is related to changes from earlier versions of MySQL. Here is the workaround:
(1) Open the file:
:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-binaries\dbserver\mysql5711x86x160717165359\my.ini
(2) Add this line at the end and then save the file:
show_compatibility_56 = on
(3) Restart the MySQL server from the EasyPHP dashboard.
Oh yes, I also ran the following upgrade from the MySQL command line:
mysql_upgrade -u root -p
This has cleared up some errors which showed up in other tabs that I didn't mention, such as not having permission to access the server status and not being able to get a list of the MySQL variables.
I still would like to solve the original problem but have spent too much time on this initial stage to work on it tonight. If anyone has info that please post.
I had the same issue. What I did to fix it was quite simple.
Exit EasyPhp.
Navigate to directory **\EasyPHP-Devserver-17\eds-binaries\dbserver\mysql5717x86xxx\data**
Find and remove the following files with ext .frm & .ibd
innodb_index_stats
innodb_table_stats
slave_master_info
slave_relay_log_info
slave_worker_info
After navigate to directory \EasyPHP-Devserver-17\eds-binaries\dbserver\mysql5717x86xxx\bin
Open command prompt and type
mysql_update -u root -p
<BLANK>
Afterwords you should see MySQL update, aswell as some of easyphp's files.
Exit mysql terminal, and start EasyPhp again.
Hope that helps!

Setting up MAMP - changing password

New to php, mysql and apache, but not to html/css and web design. Have downloaded MAMP to create new joomla website offline (also fairly new to joomla).
Following instructions in MAMP documentation and dwuser.com/education/content/why-you-need-a-testing-server-and-how-to-do-it/ and other sources (though am wary of non-official sites and years old info). It seems all is installed correctly (the message says so).
Trying to change the password of the mysql root user via Terminal app (inexperienced in console work too, sorry). After entering the correct text and substituting new password I am prompted for a password. There's a grey upright box with a white circle at the spot where I'd enter this old password ('root'). If I switch away from the terminal window the box becomes an outlined version.
Have tried limiting the new pw to all lowercase (12 characters), putting in computer admin password, and also searching to find out what the box means (unsuccessfully).
Also tried continuing setup by changing the password in the config.inc.php file (just in case) but afterwards password error messages came up.
Searching on the password error part has shown others have had problems but the replies have been beyond me, hopefully my knowledge will advance in time.
I hope some kind person will point me in the right direction... please? (In fairly simple terms too please).
Many thanks in advance.
.....
more info via edit
In the console I am keying
/Applications/MAMP/Library/bin/mysqladmin -u root -p password [NewPassword]
and substituting a new password (random 12 character) for [NewPassword]. After 'enter', the following line shows
Enter password: "grey sq box here"
and at this point nothing can be entered in the console.
So I know something's already amiss.
Thanks for your help...
I'll try to explain as detail as possible.
I believe you can execute the terminal.
0.Move to mampstack folder
$cd /Applications/MAMP/
stop mysql service
$sudo ./ctlscript.sh stop mysql
Password:"your_macbook_user_password"
2.Command not to look at grant table(which requires password input)
$/Applications/MAMP/Library/bin/mysqld_safe --skip-grant-tables &
3.You can enter mysql root directly due to 2nd process
mysql -u root mysql
change the password with the update query
mysql>update user set password=password('new-passwd') where user = 'root';
quit the mysql
mysql>flush privileges;
mysql>quit
restart the mysql
service mysqld restart service mysql restart Try both

How to find out the username and password for mysql database

I've forgotten what I set as username and password for mysql database. How could I be able to find it out? I am using wamp server. I am a newbie in mysql.
Go to this file in: WampFolder\apps\phpmyadmin[phpmyadmin version]\config.inc.php
Usually wamp is in your main hard drive folder C:\wamp\
You will see something like:
$cfg['Servers'][$i]['user'] = 'YOUR USER NAME IS HERE';
$cfg['Servers'][$i]['password'] = 'AND YOU PASSWORD IS HERE';
Try using the password and username that you have on that file.
Assuming that the user you are using in phpmyadmin has the necessary privileges, you can run this query to change the root password:
UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';
FLUSH PRIVILEGES;
If you forget your password for SQL plus 10g then follow the steps :
START
Type RUN in the search box
Type 'cnc' in the box captioned as OPEN and a black box will appear
4.There will be some text already in the box. (C:\Users\admin>) Just beside that start typing 'sqlplus/nolog' press ENTER key
On the next line type 'conn sys/change_on_install as sysdba' (press ENTER)
6.(in the next line after sql-> type) 'alter user scott account unlock' .
Now open your slpplus and type user name as 'scott' and password as 'tiger'.
If it asks your old password then type the one you have given while installing.
In your local system right,
go to this url : http://localhost/phpmyadmin/
In this click mysql default db, after that browser user table to get existing username and password.
One of valid JDBC url is
jdbcUrl=jdbc:mysql://localhost:3306/wsmg?user=root&password=root
There are two easy ways:
In your cpanel
Go to cpanel/ softaculous/ wordpress, under the current installation, you will see the websites you have installed with the wordpress.
Click the "edit detail" of the particular website and you will see your SQL database username and password.
In your server
Access your FTP and view the wp-config.php
Open phpmyadmin, go to database and corresponding table to find it out.