How to configure MYSQL ..
[FONT="Times New Roman"]I got the solution to my problem on my own.
:cool: Check it out here : How to setup MYSQL in Suse. What i m using: Suse 10.2 Apache2 webserver MYSQL Ver 14.12 Distrib 5.0.26, for suse-linux-gnu (i686) To start APACHE2 server In terminal type Code:
/etc/init.d/apache2 start Code:
/etc/init.d/mysql start Now, My Problem was : Whenever i want to create a database using sql command and type mysql in terminal it prints the following message. Code:
suse:~ # mysql so, 1)The root superuser is never allowed to access mysql through terminal due to security reasons but u can enable it ... see below for it. 2)however root is given aceess to all the databses through localhost. for eg.when i was trying to install a forum in my webserver in installation process it asked for user and user password.and for all databases root user and password works. 3)Now u will be wondering what the use of root password then if it cannot access mysql through terminal and cannot use sqlcommands.but remember root can acess all command through localhost. take a example: I created a user xyz and assign it to database php and give it only the privilge of queryin the database i.e. using only SELECT command and used this user information while installing a forum ..the followin error occured. Code:
A fatal and unrecoverable database error has occurred. This may be because the specified user does not have appropriate permissions to CREATE TABLES or INSERT data, etc. Further information may be given below. Please contact your hosting provider in the first instance for further assistance. How to enable root to access commands through terminal and to remove the anonymous user settings and the test database just run the mysql_secure_installation command in terminal and follow on screen steps. To assign user to a particular database and asssign him the privileges. run the mysql_setpermission command in terminal and enter the root super userpassword u will get the folowing screen: Code:
###################################################################### At last, remember never share ur root superuser password with anyone because it has all privileges and it sets other privileges. and through it one can easily hack ur database. Plz leave reply post if helps u in anyway and ask questions if there r doubts. I love to do experimenting all around. and if i got anything new i will sure update this post. All the things i learnt while experimenting when i got stuck wid my problem..thats the most xciting part of linux u learn while xperimenting.. |
I would recommend reading the manual. There is a section on securing mysql after the initial setup. ( On openSUSE 10.2 the mysql package supplies the manual in /usr/share/doc/packages/mysql) For openSUSE 10.3, you need to download the manual from the mysql site.
|
All times are GMT -5. The time now is 03:25 AM. |