You’re going to want to add Python to your Path Environment Variable in this way. Go to:
- My Computer
- System Properties
- Advance System Settings
- Under the “Advanced” tab click the button that says “Environment Variables”
- Then under System Variables you are going to want to add / change the following variables:
PYTHONPATH
andPath
. Here is a paste of what my variables look like:
PYTHONPATH
C:\Python27;C:\Python27\Lib\site-packages;C:\Python27\Lib;C:\Python27\DLLs;C:\Python27\Lib\lib-tk;C:\Python27\Scripts
Path
C:\Program Files\MySQL\MySQL Utilities 1.3.5\;C:\Python27;C:\Python27\Lib\site-packages;C:\Python27\Lib;C:\Python27\DLLs;C:\Python27\Lib\lib-tk;C:\Python27\Scripts
Your Path’s might be different, so please adjust them, but this configuration works for me and you should be able to run MySQL after making these changes.
Related Posts:
- Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock
- Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock
- Setting Django up to use MySQL
- Escape string Python for MySQL
- ImportError: No module named MySQLdb
- How to install Python MySQLdb module using pip?
- What is the easiest way to clear a database from the CLI with manage.py in Django?
- Failed building wheel for mysql-python
- Error loading MySQLdb module: No module named ‘MySQLdb’
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- ‘pip’ is not recognized as an internal or external command
- How to use mysqli_query() in PHP?
- Access Denied for User ‘root’@’localhost’ (using password: YES) – No Privileges?
- Access Denied for User ‘root’@’localhost’ (using password: YES) – No Privileges?
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- Column count doesn’t match value count at row 1
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- MySQL string replace
- Cannot add or update a child row: a foreign key constraint fails
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- String concatenation in MySQL
- What’s the difference between INNER JOIN, LEFT JOIN, RIGHT JOIN and FULL JOIN? [duplicate]
- Where does pip install its packages?
- Cannot add or update a child row: a foreign key constraint fails
- IndexError: tuple index out of range —– Python
- MySQL Error “Operand should contain 1 column”
- Where does pip install its packages?
- How to use MySQL DECIMAL?
- django: TypeError: ‘tuple’ object is not callable
- Access denied for user ‘root@localhost’ (using password:NO)
- Can’t connect to local MySQL server through socket ‘/var/mysql/mysql.sock’ (38)
- How to make MySQL table primary key auto increment with some prefix
- Access denied for user ‘root@localhost’ (using password:NO)
- MySQL ERROR 1290 (HY000) –secure-file-priv option
- Getting TypeError: __init__() missing 1 required positional argument: ‘on_delete’ when trying to add parent table after child table with entries
- MySQL error 2006: mysql server has gone away
- Which MySQL data type to use for storing boolean values
- Can’t fix “zipimport.ZipImportError: can’t decompress data; zlib not available” when I type in “python3.6 get-pip.py”
- No module named ‘psycopg2’
- Is #include
bad practice? - sql query with multiple where statements
- Getting TypeError: __init__() missing 1 required positional argument: ‘on_delete’ when trying to add parent table after child table with entries
- ERROR 2003 (HY000): Can’t connect to MySQL server on localhost (10061)
- No module named MySQLdb
- ERROR 1698 (28000): Access denied for user ‘root’@’localhost’
- Cannot delete or update a parent row: a foreign key constraint fails
- Cannot delete or update a parent row: a foreign key constraint fails
- ERROR 2003 (HY000): Can’t connect to MySQL server on localhost (10061)
- No module named MySQLdb
- MySQL server startup error ‘The server quit without updating PID file’
- How to check Django version
- Rename a column in MySQL
- “INSERT IGNORE” vs “INSERT … ON DUPLICATE KEY UPDATE”
- Cannot delete or update a parent row: a foreign key constraint fails
- MySQL server startup error ‘The server quit without updating PID file’
- How do I restore a dump file from mysqldump?
- Syntax error due to using a reserved word as a table or column name in MySQL
- How to switch Python versions in Terminal?
- ERROR 1698 (28000): Access denied for user ‘root’@’localhost’
- MySQL root password change
- Installation of MySQL for Visual Studio 1.2.8 failed
- Django: ImproperlyConfigured: The SECRET_KEY setting must not be empty
- is not JSON serializable
- Not unique table/alias
- How do I import an SQL file using the command line in MySQL?
- PHP Connection failed: SQLSTATE[HY000] [2002] Connection refused
- #1273 – Unknown collation: ‘utf8mb4_unicode_520_ci’
- MySQL ERROR 1045 (28000): Access denied for user ‘bill’@’localhost’ (using password: YES)
- Your password does not satisfy the current policy requirements
- How do I quickly rename a MySQL database (change schema name)?
- What does SQL Select symbol || mean?
- Django: ImproperlyConfigured: The SECRET_KEY setting must not be empty
- MySQL: Access denied for user ‘test’@’localhost’ (using password: YES) except root user
- PHP Connection failed: SQLSTATE[HY000] [2002] Connection refused
- django:django.core.exceptions.AppRegistryNotReady: Apps aren’t loaded yet
- mysql_config not found when installing mysqldb python interface
- SQL – Update multiple records in one query
- No module named pkg_resources
- Django upgrading to 1.9 error “AppRegistryNotReady: Apps aren’t loaded yet.”
- Mysql: Setup the format of DATETIME to ‘DD-MM-YYYY HH:MM:SS’ when creating a table
- What is the definition of cardinality in SQL
- How to restart remote MySQL server running on Ubuntu linux?
- Authentication plugin ‘caching_sha2_password’ cannot be loaded
- MySQL DROP all tables, ignoring foreign keys
- #1055 – Expression of SELECT list is not in GROUP BY clause and contains nonaggregated column this is incompatible with sql_mode=only_full_group_by
- When to use SELECT … FOR UPDATE?
- Host ‘xxx.xx.xxx.xxx’ is not allowed to connect to this MySQL server
- Can’t compare naive and aware datetime.now() <= challenge.datetime_end
- Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)
- Setting up foreign keys in phpMyAdmin?
- Select from multiple tables without a join?
- PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP
- ERROR 1396 (HY000): Operation CREATE USER failed for ‘jack’@’localhost’
- SQL Query Where Field DOES NOT Contain $x
- Create a new database with MySQL Workbench
- Duplicating a MySQL table, indices, and data
- django import error – No module named core.management
- Disable ONLY_FULL_GROUP_BY
- Forbidden (403) CSRF verification failed. Request aborted. Even using the {% csrf_token %}