
22nd February 2006, 09:57
|
|
Junior Member
|
|
Join Date: Feb 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Error: Unknown column 'active' in 'field list'
I get a Unknown column 'active' in 'field list' error when creating a dns record.
I have rechecked all setting and I am stumped.
Any help will be appreciated.
Tc
|

22nd February 2006, 10:59
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
You must add the column "active" to your soa table, as outlined here: http://www.howtoforge.com/mydns_name_server
Code:
mysql -u root -p
Enter password:
ALTER TABLE mydns.soa ADD COLUMN active ENUM('Y','N') NOT NULL;
ALTER TABLE mydns.soa ADD INDEX (active);
ALTER TABLE mydns.soa ADD COLUMN xfer CHAR(255) NOT NULL;
quit;
|

22nd February 2006, 13:25
|
|
Junior Member
|
|
Join Date: Feb 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
That was it, BUT
That fixed the active error. But now I get
Error:
You don't have the permission to view this record or this record does not exist!
I have setup several records, started testing and now I can't modify any record or user.
Any HELP will be appreciated.
TWC
|

22nd February 2006, 19:47
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
Please check the settings for the admin user under "System", especially if the module "dns" is enabled for admin.
|

22nd February 2006, 23:22
|
|
Junior Member
|
|
Join Date: Feb 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
more info
System? Can you guide me a little more? DB, table, column, entry, etc or are you referring to a different conf?
Im running
FreeBSD 6
MySQL 5
Also this seems to occur after adding another user. The first time I deleted all DBs and reinstalled. I don't want to do that again?
Great work!!!
THANX
Last edited by TWC; 22nd February 2006 at 23:29.
|

22nd February 2006, 23:54
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
Quote:
|
Originally Posted by TWC
System? Can you guide me a little more? DB, table, column, entry, etc or are you referring to a different conf?
|
I'm referring to the MyDNSConfig web interface. There's a tab "System" where you can manage users.
|

23rd February 2006, 00:01
|
|
Junior Member
|
|
Join Date: Feb 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
In system I select admin and get error:
Error:
You don't have the permission to view this record or this record does not exist!
|

23rd February 2006, 00:19
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
Please check what's in your sys_user table:
Code:
mysql -u root -p
USE mydns;
SELECT * FROM sys_user;
quit;
What's the output of the SELECT statement?
|

23rd February 2006, 00:26
|
|
Junior Member
|
|
Join Date: Feb 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Code:
mysql> SELECT * FROM sys_user;
+--------+------------+-------------+---------------+----------------+----------------+----------+----------------------------------+-----------+-------------+-----------+-------+--------+------+---------+-------------+---------+-----+-----+------+-------+-----+---------+-----+----------+--------+---------------+
| userid | sys_userid | sys_groupid | sys_perm_user | sys_perm_group | sys_perm_other | username | passwort | modules | startmodule | app_theme | typ | active | name | vorname | unternehmen | strasse | ort | plz | land | email | url | telefon | fax | language | groups | default_group |
+--------+------------+-------------+---------------+----------------+----------------+----------+----------------------------------+-----------+-------------+-----------+-------+--------+------+---------+-------------+---------+-----+-----+------+-------+-----+---------+-----+----------+--------+---------------+
| 4 | 3 | 0 | riud | riud | | test | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | admin,dns | admin | default | admin | 1 | | | | | | | | | | | | en | | 0 |
| 3 | 1 | 0 | riud | riud | | admin | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | admin,dns | dns | default | admin | 1 | | | | | | | | | | | | en | | 0 |
+--------+------------+-------------+---------------+----------------+----------------+----------+----------------------------------+-----------+-------------+-----------+-------+--------+------+---------+-------------+---------+-----+-----+------+-------+-----+---------+-----+----------+--------+---------------+
2 rows in set (0.01 sec)
Last edited by falko; 23rd February 2006 at 00:59.
|

23rd February 2006, 00:58
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
How did you manage to have 3 as userid for admin? Should be 1.
For me it looks like this:
Code:
+--------+------------+-------------+---------------+----------------+----------------+----------+----------------------------------+-----------+-------------+-----------+-------+--------+------+---------------+-------------+---------+-----+-----+------+-------+-----+---------+-----+----------+--------+---------------+
| userid | sys_userid | sys_groupid | sys_perm_user | sys_perm_group | sys_perm_other | username | passwort | modules | startmodule | app_theme | typ | active | name | vorname | unternehmen | strasse | ort | plz | land | email | url | telefon | fax | language | groups | default_group |
+--------+------------+-------------+---------------+----------------+----------------+----------+----------------------------------+-----------+-------------+-----------+-------+--------+------+---------------+-------------+---------+-----+-----+------+-------+-----+---------+-----+----------+--------+---------------+
| 1 | 1 | 0 | riud | riud | | admin | 098f6bcd4621d373cade4e832627b4f6 | dns,admin | dns | default | admin | 1 | | Administrator | | | | | | | | | | en | | 0 |
+--------+------------+-------------+---------------+----------------+----------------+----------+----------------------------------+-----------+-------------+-----------+-------+--------+------+---------------+-------------+---------+-----+-----+------+-------+-----+---------+-----+----------+--------+---------------+
1 row in set (0.00 sec)
You can correct this by running
Code:
UPDATE sys_user SET userid = '1' WHERE username = 'admin';
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 00:26.
|
Recent comments
15 hours 53 min ago
21 hours 9 min ago
21 hours 20 min ago
21 hours 28 min ago
22 hours 30 min ago
1 day 38 min ago
1 day 3 hours ago
1 day 3 hours ago
1 day 3 hours ago
1 day 4 hours ago