Anope IRC Services

MagIRC => MagIRC Support => Topic started by: Zero on April 13, 2012, 05:20:29 PM

Title: SQL Password
Post by: Zero on April 13, 2012, 05:20:29 PM
I was confused when I was first setting this up because I was getting an SQL Error. Normally one would assume that a typo was the cause with ether username, database, or password. I ignored the error and just saved the information when I was running the setup.

Then I looked at the generated config file and compared it to other php/sql software I have used.

Code: (Generated Version) [Select]
<?php

$db['username'] = "sqlusername";
$db['password'] = "sqlpassword";
$db['database'] = "magirc";
$db['hostname'] = "mysql.server";
$db['port'] = "3306";
?>

There error was a result of the $db['password'] = "sqlpassword"; if the password contain a symbol like "$", it would result in an error. However, when I changed that line to $db['password'] = 'sqlpassword'; instead, it worked and let me finish setting everything up. (IE. Changing the " to '.)
Title: Re: SQL Password
Post by: Hal9000 on April 16, 2012, 02:28:12 PM
thanks for pointing this out, i will fix this in git soon