'could not connect mysql use passwod'

@unittest2.skip('test_issue_17()    requires    a    custom,    legacy    MySQL    configuration    and    will    not    be    run.')
def test_issue_17(self):

    conn = self.connections[0]
    host = self.databases[0]['host']
    db = self.databases[0]['db']
    c = conn.cursor()
    try:
        with warnings.catch_warnings():
            warnings.filterwarnings('ignore')
            c.execute('drop    table    if    exists    issue17')
        c.execute('create    table    issue17    (x    varchar(32)    primary    key)')
        c.execute("insert    into    issue17    (x)    values    ('hello,    world!')")
        c.execute(("grant    all    privileges    on    %s.issue17    to    'issue17user'@'%%'    identified    by    '1234'" % db))
        conn.commit()
        conn2 = pymysql.connect(host=host, user='issue17user', passwd='1234', db=db)
        c2 = conn2.cursor()
        c2.execute('select    x    from    issue17')
        self.assertEqual('hello,    world!', c2.fetchone()[0])
    finally:
        c.execute('drop    table    issue17')
