To all of you having Problems with connecting to local mysql

Read log files for errors! If this fails, come here for help

Moderator: Forum Moderator

Post Reply
Alphawolf
Peon
Posts: 9
Joined: Mon Feb 06, 2006 4:20 pm

To all of you having Problems with connecting to local mysql

Post by Alphawolf » Tue Feb 07, 2006 8:26 am

This is only for Linux user:

There is a bug?! which costs me full two days to find. Everytime when I used WC3 Sql or the amxx sql admin plugin the connection to mysql Server failed. It says:

[warcraft3FT.amxx] Error: Can't connect to MySQL server on 'localhost' (111)

(127.0.0.1 is the same)

This is because the plugins try to connect via unix socket (which is good in general).

But they are looking only here for the socket: /tmp/mysql.socket Sometimes (think mysql > 5 or at Debian) the socket is at /var/run/mysqld/mysqld.sock

So this both plugins cannot connect. War3FT writes an error message to the log file if it's in debug modus. Admin sql doesn't write an error message but it's the same with it.

So just put this on shell an be happy:

Code: Select all

ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock

I hope this will help someone.

Fyrmn472
Peon
Posts: 5
Joined: Fri Oct 05, 2007 3:46 pm

Post by Fyrmn472 » Fri Oct 05, 2007 4:45 pm

For me, it was:

Code: Select all

ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
All else fails, check /etc/my.cnf and it will have the basedir listed.

The tutorial that was made is great! --> viewtopic.php?t=375

I am VERY new to MySql and it was fairly easy to complete. All I had to do when I was done was add the following tables:

Code: Select all

REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '0', 'en', 'Vampiric Aura', 'You gain life back from each successful shot at an enemy', '1', '1' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '1', 'en', 'Unholy Aura', 'Gives you more stamina', '1', '1' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '2', 'en', 'Levitation', 'Allows you to jump higher', '1', '1' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '3', 'en', 'Suicide Bomber', 'When you die you will explode killing nearby enemies', '3', '1' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '4', 'en', 'Invisibility', 'Makes you partially invisible, you will be harder to see', '1', '2' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '5', 'en', 'Devotion Aura', 'Gives you bonus health at the start of the round', '1', '2' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '6', 'en', 'Bash', 'When you shoot someone you have a chance of stunning them for a short period of time', '1', '2' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '7', 'en', 'Teleport', 'Allows you to teleport where you are aiming', '3', '2' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '8', 'en', 'Critical Strike', 'Gives you a chance of doing more damage', '1', '3' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '9', 'en', 'Critical Grenade', 'Grenades will always do more damage', '1', '3' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '10', 'en', 'Reincarnation', 'Gives you a chance of regaining your equipment on death', '1', '3' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '11', 'en', 'Chain Lightning', 'Discharges a bolt of lightning that jumps to all nearby enemies', '3', '3' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '12', 'en', 'Evasion', 'Gives you a chance of evading each shot', '1', '4' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '13', 'en', 'Thorns Aura', 'Does mirror damage to the person who shot you', '1', '4' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '14', 'en', 'Trueshot Aura', 'Does extra damage to the enemy on each shot', '1', '4' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '15', 'en', 'Entangle Roots', 'Allows you to prevent an enemy player from moving for 10 seconds', '3', '4' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '16', 'en', 'Phoenix', 'You will gain more money with each kill, half of this is also awarded to nearby teammates', '1', '5' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '17', 'en', 'Banish', 'You have a chance of teleporting your attacker into an astral prison', '1', '5' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '18', 'en', 'Siphon Mana', 'Steal a percentage of the enemy\'s money on each successful attack', '1', '5' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '19', 'en', 'Immolate', 'Discharges fire to burn the enemy over time', '3', '5' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '20', 'en', 'Resistant Skin', 'You will deflect a percentage of normal damage done to you', '2', '5' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '21', 'en', 'Healing Wave', 'You heal yourself and nearby teammates', '1', '6' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '22', 'en', 'Hex', 'You have a chance of disabling your enemy\'s abilities, as well as slowing him/her down', '1', '6' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '23', 'en', 'Serpent Ward', 'You receive serpent wards each round that damage nearby enemy units (bind a key to ability (or say ability) to plant one)', '1', '6' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '24', 'en', 'Big Bad Voodoo', 'Invincibility for 2 seconds', '3', '6' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '25', 'en', 'Unstable Concoction', 'When attacked, you have a chance of doing damage to your attacker and his nearby teammates', '2', '6' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '26', 'en', 'Fan of Knives', 'You have a chance of becoming a mole', '1', '7' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '27', 'en', 'Blink', 'You have a chance of disabling enemy ultimates', '1', '7' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '28', 'en', 'Shadow Strike', 'You have a chance of hurling a poisoned dagger at the enemy', '1', '7' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '29', 'en', 'Vengeance', 'Respawn or be teleported back to your spawn', '3', '7' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '30', 'en', 'Hardened Skin', 'You will deflect some of the magical damage done to you', '2', '7' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '31', 'en', 'Impale', 'You have a chance of sending your enemy into the air', '1', '8' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '32', 'en', 'Spiked Carapace', 'Does mirror damage to the person who shot you and you gain armor', '1', '8' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '33', 'en', 'Carrion Beetles', 'You have a chance of your beetles attacking the enemy when on target', '1', '8' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '34', 'en', 'Locust Swarm', 'A Swarm of green locusts attacks the enemy', '3', '8' );
REPLACE INTO `wc3_web_skill` ( `skill_id` , `skill_lang` , `skill_name`, `skill_description`, `skill_type`, `skill_owner` ) VALUES ( '35', 'en', 'Orb of Annihilation', 'You have a chance of doing additional damage per attack', '2', '8' );

Post Reply