when i do manage.py syncdb .the consloe give me some error below.i have install the mysql-python.what i should do before run the manage.py,such as config the MySQL? so thanks.
Traceback (most recent call last):
File "E:\wiki\manage.py", line 11, in <module>
execute_manager(settings)
File "D:\Python\Lib\site-packages\django\core\management.py", line 1672, in ex
ecute_manager
execute_from_command_line(action_mapping, argv)
File "D:\Python\Lib\site-packages\django\core\management.py", line 1571, in ex
ecute_from_command_line
action_mappingaction
File "D:\Python\Lib\site-packages\django\core\management.py", line 492, in syn
cdb
_check_for_validation_errors()
File "D:\Python\Lib\site-packages\django\core\management.py", line 1167, in _c
heck_for_validation_errors
num_errors = get_validation_errors(s, app)
File "D:\Python\Lib\site-packages\django\core\management.py", line 990, in get
_validation_errors
db_version = connection.get_server_version()
File "D:\Python\Lib\site-packages\django\db\backends\mysql\base.py", line 127,
in get_server_version
self.cursor()
File "D:\Python\Lib\site-packages\django\db\backends\mysql\base.py", line 99,
in cursor
self.connection = Database.connect(kwargs)
File "D:\Python\Lib\site-packages\MySQLdb__init__.py", line 74, in Connect
return Connection(*args, kwargs)
File "D:\Python\Lib\site-packages\MySQLdb\connections.py", line 170, in init
super(Connection, self).init(args, *kwargs2)
_mysql_exceptions.OperationalError: (2003, "Can't connect to MySQL server on 'lo
calhost' (10061)")
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It's trying to connect to a local MySQL server, and it doesn't seem to be running. Take a look at settings.py and set appropriately or else start your MySQL server.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
when i do manage.py syncdb .the consloe give me some error below.i have install the mysql-python.what i should do before run the manage.py,such as config the MySQL? so thanks.
Traceback (most recent call last):
File "E:\wiki\manage.py", line 11, in <module>
execute_manager(settings)
File "D:\Python\Lib\site-packages\django\core\management.py", line 1672, in ex
ecute_manager
execute_from_command_line(action_mapping, argv)
File "D:\Python\Lib\site-packages\django\core\management.py", line 1571, in ex
ecute_from_command_line
action_mappingaction
File "D:\Python\Lib\site-packages\django\core\management.py", line 492, in syn
cdb
_check_for_validation_errors()
File "D:\Python\Lib\site-packages\django\core\management.py", line 1167, in _c
heck_for_validation_errors
num_errors = get_validation_errors(s, app)
File "D:\Python\Lib\site-packages\django\core\management.py", line 990, in get
_validation_errors
db_version = connection.get_server_version()
File "D:\Python\Lib\site-packages\django\db\backends\mysql\base.py", line 127,
in get_server_version
self.cursor()
File "D:\Python\Lib\site-packages\django\db\backends\mysql\base.py", line 99,
in cursor
self.connection = Database.connect(kwargs)
File "D:\Python\Lib\site-packages\MySQLdb__init__.py", line 74, in Connect
return Connection(*args, kwargs)
File "D:\Python\Lib\site-packages\MySQLdb\connections.py", line 170, in init
super(Connection, self).init(args, *kwargs2)
_mysql_exceptions.OperationalError: (2003, "Can't connect to MySQL server on 'lo
calhost' (10061)")
It's trying to connect to a local MySQL server, and it doesn't seem to be running. Take a look at settings.py and set appropriately or else start your MySQL server.