Skip to content

Commit

Permalink
Removed db passwords, even though they're not loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
albertyw committed Oct 6, 2013
1 parent 91baaf3 commit 2c4384a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Mysql():
Initialize the connection
'''
def __init__(self):
self.db=MySQLdb.connect(host="localhost",user="avenews",passwd="F6mfT5RM3fBQjE7J",db="avenews")
self.db=MySQLdb.connect(host="localhost",user="avenews",passwd="",db="avenews")
self.db.autocommit(True)
pass
'''
Expand Down
2 changes: 1 addition & 1 deletion old/data/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Mysql():
Initialize the connection
'''
def __init__(self):
self.db=MySQLdb.connect(host="localhost",user="newsmap",passwd="J8jvEFyFTp5aqfGn",db="newsmap")
self.db=MySQLdb.connect(host="localhost",user="newsmap",passwd="",db="newsmap")
pass
'''
Send a query to the database
Expand Down
2 changes: 1 addition & 1 deletion old/functions.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

function connectDatabase(){
mysql_connect("localhost", 'newsmap','J8jvEFyFTp5aqfGn') or die(mysql_error());
mysql_connect("localhost", 'newsmap','') or die(mysql_error());
mysql_select_db('newsmap') or die(mysql_error());
}

0 comments on commit 2c4384a

Please sign in to comment.