-
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

Lenovo ThinkPad L14 Gen 1 Core i5-10310U 1.7GHz 16GB 512GB 14" W11P Laptop
$197.10

Lenovo Thinkpad E15 Gen 2 8GB RAM 256GB SSD Intel Core [email protected] Laptop
$220.36

Lenovo ThinkPad T14 Gen 2 i5-1145G7 16GB 512GB SSD Touch Win11 Pro
$289.99

LENOVO 83A100PBUS Lenovo V15 G4 IRU 15.6" FHD i3-1315U 1.2GHz Intel UHD Graphics
$346.00

LENOVO THINKPAD T14s GEN 2a Ryzen 7 PRO 5850U 1.9GHz 16GB 256GB TOUCH - NO OS
$299.95

Lenovo - Idea Tab Plus - 12.1" 2.5K Tablet - 8GB RAM - 128GB UFS - Luna Grey
$209.99

Lenovo ThinkPad T14s Gen 2 14" 32GB, Thunder Black
$318.83

LENOVO THINKCENTRE M75Q GEN 2 RYZEN 5 PRO 5650GE 8GB RAM 256GB NVMe WiFi WIN 11
$206.99

Lenovo ThinkPad T490s 14" FHD i5-8365U 16GB RAM 256GB SSD Windows 11 Pro Laptop
$229.00

Lenovo Lenovo ThinkPad X13 Yoga Gen 2 i7-1185G7 32GB RAM 512GB NVMe SSD
$449.00