These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for [API] "DBI connect failed" after "list-domains" with "--multiline" switch on the new forum.
Hi,
I used the 'list-domains' API command with the '--multiline' switch and go this in the output:
# virtualmin list-domains --multiline
glaas.net
ID: 12701354084785
Type: Top-level server
Description: Customer - Svetoslav Hrankov
Template ID: 126056372816312
Template: DNS Hosting
Plan ID: 0
Plan: DNS Hosting
Username: shrankov
User ID: 500
Group name: shrankov
Group ID: 501
Mailbox username prefix: shrankov
Password: [deleted]
Home directory: /home/shrankov
Contact email: [deleted]
Created on: 01/Apr/2010 18:23
Created by: [deleted]
IP address: [deleted] (Shared)
Features: unix dir dns webmin
Server quota: Unlimited
Server block quota: Unlimited
Server quota used: 80 kB
Server block quota used: 80
User quota: Unlimited
User block quota: Unlimited
User quota used: 80 kB
User block quota used: 80
SPF DNS record: Enabled
Maximum sub-servers: 1
Maximum alias servers: 0
Maximum non-alias servers: *
Maximum mailboxes: 1
Maximum databases: 0
Maximum aliases: 0
Maximum Mongrel instances: Unlimited
Can choose database names: No
Can rename servers: No
Sub-servers must be under main domain: No
Read-only mode: No
Allowed features: unix dir dns webmin
Edit capabilities: domain disable delete
Allowed scripts: All
Shell type: ftp
Login permissions: Email and FTP
Shell command: /sbin/nologin
Error: DBI connect failed : Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Error
-----
DBI connect failed : Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
As you can see only DNS is enabled (this is a DNS-hosting-only server).
Is this a bug or am I doing something wrong?
Best regards
if mysql is not running then there would not be a socket to connect to.
in that case I doubt this is a bug.
Yes, I understand that but I don't want it to be running on purpose (the only module that I have enabled is the DNS module). Why does Virtualmin check for MySQL connection when I specifically disabled the MySQL module for the virtual server (domain)? This is what bothers me.
I think that Virtualmin should not try to connect to MySQL during the list-domains command if the MySQL module is disabled and the domain does not have any MySQL databases.