Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-190

Can't connect to MySQL server on u'localhost

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Not a Bug
    • Affects Version/s: None
    • Fix Version/s: N/A
    • Component/s: Build
    • Labels:
      None
    • Python Version:
      2.7

      Description

      ohamed-Mac-Pro:frappe-bench mac$ bench new-site site1.local
      MySQL root password:
      Traceback (most recent call last):
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main
      "_main_", fname, loader, pkg_name)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
      exec code in run_globals
      File "/Users/mac/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 94, in <module>
      main()
      File "/Users/mac/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
      click.Group(commands=commands)(prog_name='bench')
      File "/Users/mac/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 764, in _call_
      return self.main(*args, **kwargs)
      File "/Users/mac/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 717, in main
      rv = self.invoke(ctx)
      File "/Users/mac/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1137, in invoke
      return _process_result(sub_ctx.command.invoke(sub_ctx))
      File "/Users/mac/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1137, in invoke
      return _process_result(sub_ctx.command.invoke(sub_ctx))
      File "/Users/mac/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 956, in invoke
      return ctx.invoke(self.callback, **ctx.params)
      File "/Users/mac/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 555, in invoke
      return callback(*args, **kwargs)
      File "/Users/mac/frappe-bench/apps/frappe/frappe/commands/site.py", line 34, in new_site
      verbose=verbose, install_apps=install_app, source_sql=source_sql, force=force)
      File "/Users/mac/frappe-bench/apps/frappe/frappe/commands/site.py", line 65, in _new_site
      admin_password=admin_password, verbose=verbose, source_sql=source_sql,force=force, reinstall=reinstall)
      File "/Users/mac/frappe-bench/apps/frappe/frappe/installer.py", line 36, in install_db
      create_database_and_user(force, verbose)
      File "/Users/mac/frappe-bench/apps/frappe/frappe/installer.py", line 60, in create_database_and_user
      if force or (db_name not in dbman.get_database_list()):
      File "/Users/mac/frappe-bench/apps/frappe/frappe/model/db_schema.py", line 554, in get_database_list
      return [d[0] for d in self.db.sql("SHOW DATABASES")]
      File "/Users/mac/frappe-bench/apps/frappe/frappe/database.py", line 136, in sql
      self.connect()
      File "/Users/mac/frappe-bench/apps/frappe/frappe/database.py", line 86, in connect
      charset='utf8mb4', use_unicode = True, conv = conversions)
      File "/Users/mac/frappe-bench/env/lib/python2.7/site-packages/pymysql/_init_.py", line 94, in Connect
      return Connection(*args, **kwargs)
      File "/Users/mac/frappe-bench/env/lib/python2.7/site-packages/pymysql/connections.py", line 327, in _init_
      self.connect()
      File "/Users/mac/frappe-bench/env/lib/python2.7/site-packages/pymysql/connections.py", line 629, in connect
      raise exc
      pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on u'localhost' ([Errno 61] Connection refused)")
      Mohamed-Mac-Pro:frappe-bench mac$

        Attachments

          Activity

            People

            Assignee:
            georg Georg Richter
            Reporter:
            mohammed Mohammed abuhasna
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.