Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*[“‘][a-z0-9\-_\!\$]+[“‘]': try: # create MySQL database db1 = MS.connect( host='localhost',user='authenticated',passwd='drupal' ) sql = "CREATE DATABASE IF NOT EXISTS db_mini_reader" db1.execute( sql ) # connect to MySQL 'database mdb.connect(localhost, user, pass, database)' con = mdb.connect('localhost', 'authenticated', 'drupal', 'db_mini_reader') Source: http://pastie.org/pastes/9762470/download
↧