Results 1 to 9 of 9

Thread: MySQL's user tables Read Only?

  1. #1
    Member registered user
    Join Date
    Nov 2003
    Posts
    90

    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?

  2. #2
    Senior Member
    Join Date
    Oct 2003
    Location
    Sydney, Australia
    Posts
    157
    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/

  3. #3
    Member registered user
    Join Date
    Nov 2003
    Posts
    90
    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

  4. #4
    Senior Member
    Join Date
    Oct 2003
    Location
    Sydney, Australia
    Posts
    157
    Can you paste in the exact error message it is returning?

    Thanks

  5. #5
    Member registered user
    Join Date
    Nov 2003
    Posts
    90
    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>

  6. #6
    Senior Member
    Join Date
    Oct 2003
    Location
    Sydney, Australia
    Posts
    157
    Check the permissions of the files in /var/lib/mysql/mysql. They should all be owned by user mysql and group mysql, mode 660.

  7. #7
    Member registered user
    Join Date
    Nov 2003
    Posts
    90
    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

  8. #8
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    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.)?

  9. #9
    Member registered user
    Join Date
    Nov 2003
    Posts
    90
    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

  1. Windows user now... Linux user tommorow?
    By zspecfenix17 in forum The Lounge
    Replies: 7
    Last Post: 03-10-2005, 05:58 PM
  2. Change OS read only file to read/write after "poor man'
    By Needtoknow in forum Hdd Install / Debian / Apt
    Replies: 10
    Last Post: 10-22-2004, 02:27 AM
  3. IP tables
    By Kethinov in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 12-26-2003, 01:05 AM
  4. mySQL tables on the remastered CD are read only
    By lueckmw in forum Customising & Remastering
    Replies: 2
    Last Post: 10-24-2003, 11:29 PM
  5. Partition tables and problems (QTparted)
    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
  •  


HP DL580 G9 4U Server 4x Xeon E7-8890 v3 2.5Ghz 72-Cores | 512GB RAM | 4x 1TB picture

HP DL580 G9 4U Server 4x Xeon E7-8890 v3 2.5Ghz 72-Cores | 512GB RAM | 4x 1TB

$2619.99



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Microsoft Windows Server 2022 Standard 64-bit License & DVD 16 Core US Shipping picture

Microsoft Windows Server 2022 Standard 64-bit License & DVD 16 Core US Shipping

$34.99



Broadcom 9600-24i Tri-Mode RAID Controller 4.0 NVMe SAS SATA NEW 05-50111-01003 picture

Broadcom 9600-24i Tri-Mode RAID Controller 4.0 NVMe SAS SATA NEW 05-50111-01003

$639.69



Dell Poweredge R720 8SFF 2.5

Dell Poweredge R720 8SFF 2.5" x Xeon E5-2680 v2 2.8GHz 20-Cores 128gb 4x Trays

$349.99



Dell Poweredge R720 8SFF 2.5

Dell Poweredge R720 8SFF 2.5" 2x Xeon E5-2680 v2 2.8GHz 20-Cores 64gb 4x Trays

$259.99



Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5

Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5" 4-BAY 32GB RAM No OS 2x 495w

$174.95



Supermicro 1027GR-TSF 1U Rackmount Server 2x Xeon 2.3GHz 128GB DDR3 picture

Supermicro 1027GR-TSF 1U Rackmount Server 2x Xeon 2.3GHz 128GB DDR3

$219.99



WINDOWS SERVER 2025 [REMOTE DESKTOP SERVICES] 50 USER  RDS CAL SEALED picture

WINDOWS SERVER 2025 [REMOTE DESKTOP SERVICES] 50 USER RDS CAL SEALED

$119.18



WINDOWS SERVER 2022 [REMOTE DESKTOP SERVICES] 50 USER  RDS CAL SEALED picture

WINDOWS SERVER 2022 [REMOTE DESKTOP SERVICES] 50 USER RDS CAL SEALED

$113.09