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
  •  


WAVLINK RAID 2 Bay Hard Drive Docking Station SATA 2.5/3.5'' SSD HDD Enclosure picture

WAVLINK RAID 2 Bay Hard Drive Docking Station SATA 2.5/3.5'' SSD HDD Enclosure

$107.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



Intel VROC Premium RAID Controller Card PCIe Add-On Module VROCPREMMOD picture

Intel VROC Premium RAID Controller Card PCIe Add-On Module VROCPREMMOD

$265.00



Lacie 2big Quadra RAID 2 x 2 TB 4 TB Only 158 hours  picture

Lacie 2big Quadra RAID 2 x 2 TB 4 TB Only 158 hours

$199.00



Oyen Digital MOBIUS 5-Bay RAID Enclosure USB 3.0/eSATA/FireWire picture

Oyen Digital MOBIUS 5-Bay RAID Enclosure USB 3.0/eSATA/FireWire

$140.00



Lot Mini SAS SFF-8643 To 4 SATA 7pin Hard Disk 6Gbps Data Server Raid Cable 1M picture

Lot Mini SAS SFF-8643 To 4 SATA 7pin Hard Disk 6Gbps Data Server Raid Cable 1M

$870.00



2-Bay/4-Bay Hard Drive Enclosure for 3.5

2-Bay/4-Bay Hard Drive Enclosure for 3.5"/2.5'' SATA HDD/SSD 10Gbps USB-C 3.2

$75.99



Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller picture

Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller

$64.99



LSI 9461-16i MEGARAID RAID 12GBPS 16 PCIE3.0  PORT KIT W/BATTERY 03-50011-69004 picture

LSI 9461-16i MEGARAID RAID 12GBPS 16 PCIE3.0 PORT KIT W/BATTERY 03-50011-69004

$145.99



Dell PowerVault DL2200 2x Xeon E5620 24GB RAM H700 2x500GB SAS RAID1 picture

Dell PowerVault DL2200 2x Xeon E5620 24GB RAM H700 2x500GB SAS RAID1

$230.00