Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: SQL Password  (Read 2962 times)

0 Members and 1 Guest are viewing this topic.

Jeffrey Turner

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 17
    • TurnerGames
SQL Password
« 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 '.)
Logged
Jeffrey "Zero" Turner

Hal9000

  • Team
  • *
  • Offline Offline
  • Posts: 103
Re: SQL Password
« Reply #1 on: April 16, 2012, 02:28:12 PM »

thanks for pointing this out, i will fix this in git soon
Logged
Pages: [1]   Go Up