-
MySQL's user tables Read Only?
I have been playing with Apache - PHP - Mysql with Knoppix. I was really impressed when I was able to use some dinamic web pages accesing some MySQL tables. Everithing works without a glitch.
But when I try to create some users and grant special privileges, BANG, Mysql's user tables are read-only.
So? What do you do when yo want to create some users? I try to create the users with sudo and haven't any luck neither.
Any ideas?
-
What do you mean by create some users? Are you talking about Linux users or Mysql users? If you create new Linux users, you also have to separately set them up in Mysql as well.
If you haven't already done so, I suggest getting hold of a copy of phpmyadmin.
You can apt-get install this from the debian sites, and it provides a quite useful web driven gui Mysql utility for managing databases, users, tables, queries etc.
Once it is installed, you must restart apache, then access it via http:/localhost/phpmyadmin/
-
I'm talking about MySQL users. I enter to the MySQL console, and then I type:
mysql>GRANT ALL ON mydatabase.* TO none@% IDENTIFIED BY "pass";
Then I received the message that MySQL user tables are read only. In this case, I imagine that PhpMyAdmin will have the same problem trying to create users, because he will send the same sentence to the MySQL engine
-
Can you paste in the exact error message it is returning?
Thanks
-
knoppix@ttyp0[knoppix]$ sudo /etc/init.d/mysql start
Starting MySQL database server:mysqld
knoppix@ttyp0[knoppix]$ sudo mysql
Welcome to the MySQL monitor. Conmands end with ; or \g.
Your MySQL connection id is 3 to server version: 4.0.16-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>GRANT ALL ON test.* TO [email protected] IDENTIFIED BY "pass";
ERROR 1036: Table 'user' is read only
mysql>
-
Check the permissions of the files in /var/lib/mysql/mysql. They should all be owned by user mysql and group mysql, mode 660.
-
That's the way. I check the files in /var/lib/mysql/mysql. There are no files, only links to files placed in /KNOPPIX/var/lib/mysql/mysql. So, I delete the links placed in /var/lib/mysql/mysql, copy the files placed in /KNOPPIX/var/lib/mysql/mysql. Change permission to 777 and voila, everything works fine. I was able to create mysql users
Thanks for the ideas
-
Senior Member
registered user
Change permission to 777 and voila, everything works fine. I was able to create mysql users
OK, it works, but _anyone_ can now create mysql users. Including I_am_a_mad_cracker! Mind you, for non-production, on my own system, use, this may be fine.
I'm not sure of the answer, (3 years or so since I used MySQL) but doesn't MySQL itself have a root user (that is, an entity with administrative rights over MySQL.)?
-
Yeah, I know, 777, is a little drastic, but of course this is only in a development machine. Offf course if I want to deploy something more serious I would create te appropiate users, with the level of permissions adecuate.
In this case, I just was trying to explore the capabilities of the liveCd, and I'm more impressed. It's awesome.
Similar Threads
-
By zspecfenix17 in forum The Lounge
Replies: 7
Last Post: 03-10-2005, 05:58 PM
-
By Needtoknow in forum Hdd Install / Debian / Apt
Replies: 10
Last Post: 10-22-2004, 02:27 AM
-
By Kethinov in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 12-26-2003, 01:05 AM
-
By lueckmw in forum Customising & Remastering
Replies: 2
Last Post: 10-24-2003, 11:29 PM
-
By Alan in forum Hdd Install / Debian / Apt
Replies: 7
Last Post: 08-10-2003, 12:45 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Polycom VVX 411 12-Lines Desktop VoIP Phone (2200-48450-025)
$20.00

Grandstream WP810 Portable Cordless Wi-Fi IP Phone
$54.99

YEALINK T34W PHONE & 2 MONTHS OF PHONE SERVICE
$65.00

NEW Cisco IP Phone 7841-K9 4-Line VoIP Gigabit PoE CP-7841-K9
$49.95

Cisco CP-8861-K9 8861 VoIP IP Corded Phone Charcoal New 9 available
$118.00

Cisco/Linksys SPA2102 VoIP Phone Adapter Router 2FXS (Unlocked)
$17.99

Cisco / Linksys SPA2102 VoIP 2FXS Phone Adapter with Router (unlocked)
$18.99

*New* Yealink MP54-Teams Smart Business IP Phone, PoE, Touch Screen
$75.00

Grandstream HT801 v2 1 FXS, 1 Fast Ethernet New Version
$34.99

Yealink SIP-T58W Smart Business IP Phone 7in Touchscreen WiFi PoE - Used
$179.00