TWLan Forum

Full Version: MySQL Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Sorry for not posting this in the English forum however I thought I'd gain a quicker response here.

Basically when I first download 'twlan-1.4.3L1.sh' it runs smoothly. However if I'm to shutdown my laptop then later turn it back on and start up TWLan, I get this message

Code:
No database connection could be established. (is MySQL running?)
Error message: Can't connect to local MySQL server through socket '/opt/twlan/tmp/mysql.sock' (2)

I've ran out of ideas on what to do.

Information:

I'm running Linux Debian and when I try the status command for TWLan I get this (Hope it helps)

Code:
WLan status
Apache         : running (PID 4232)
MySQL          : not running
Events handler : not running

Ports:
  80  (HTTPD/Apache) : used by TWLan
3306  (MySQL)        : unused
Notice: TWLan does not need port 3306 anymore.

When I try "sudo/etc/init.d/mysqlstop"
I'm given this message

Code:
bash: sudo/etc/init.d/mysqlstop: No such file or directory

Please, any help would be greatly appreciated.
Try this in Terminal:
Code:
sudo /opt/twlan/twlan.sh stop
and afterwards this:
Code:
sudo /opt/twlan/twlan.sh start

Greetings
Molt
on debian you normaly don't have sudo... or am i wrong? >_<

to stop your mysql deamon you have to run
Code:
su
YOUR_ROOT_PW
/etc/init.d/mysql stop

then try to restart twlan with
Code:
/opt/twlan/twlan.sh stop
/opt/twlan/twlan.sh start
As far as I know, Debian supports sudo, and if you run "twlan.sh stop", MySQL and Apache should also be stopped.

Greetings
Molt
Debian works with a root account, sudo is not installed by default.

Code:
su #you'll be asked for your root password
/opt/twlan/twlan.sh restartmysql
# check again:
/opt/twlan/twlan.sh status