I am running a Joomla training this week. One of the main items is getting the password assignment for root and database user. As a reference here is to resetting root password and assigning user to have full access to a database.
Reset root password
Step 1: Restart the MySQL server without using the user restrictions and access to the network.
#/etc/init.d/mysql stop
#mysqld --skip-grant-tables --skip-networking&
Step 2: Open another terminal and reset your password
# mysql mysql -u root
mysql> UPDATE user SET password=PASSWORD('NewPassword') WHERE user="root";
mysql> FLUSH PRIVILEGES;
# /etc/init.d/mysql restart
Assigning user access to database
Step 1: Login a root to mysql
Step 2: Assign the user joe to use from localhost the database somedatabase.
mysql> GRANT ALL privileges ON somedatabse.* TO joe@localhost IDENTIFIED BY 'SomePassword';
mysql> FLUSH PRIVILEGES;
Looking at alternative computer software solutions for a variety of reasons. This includes price, computer security, virus prevention and reliability. Here are my notes and great that if it helps you, otherwise please understand what you are doing and not follow blindly. All works expressed are my own and does not necessarily express the products or organisations mentioned here.
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2009
(54)
-
▼
May
(9)
- Reset MySQL 5 password
- Backup Thunderbird2
- Install Moodle on CentOS 5
- I am a registered Linux user #490593
- [Jaunty] Adding mp3 into OpenOffice.org Impress pr...
- [Jaunty]Installing scanning and photo editing tool...
- [Jaunty]Adding the VLC video player
- [Jaunty]Installing Thunderbird 2 on Kubuntu Linux ...
- First look at Kubuntu 9.04 Jaunty
-
▼
May
(9)
No comments:
Post a Comment