germabro.blogg.se

Setting up mysql on mac
Setting up mysql on mac












setting up mysql on mac
  1. Setting up mysql on mac mac os x#
  2. Setting up mysql on mac install#

# Finished adapting your PATH environment variable for use with MacPorts.Īlias mysqladmin=/usr/local/mysql/bin/mysqladminĪbc-MacBook:MySQL-python-1.2.3 Abc$ python # export PATH=/opt/local/bin:/opt/local/sbin:$PATHĮxport DYLD_LIBRARY_PATH=/usr/local/mysql-5.5.25a-osx10.6-x86_64/lib/:$DYLD_LIBRARY_PATHĮxport VERSIONER_PYTHON_PREFER_64_BIT=yes # MacPorts Installer addition on _at_11:53:29: adding an appropriate PATH variable for use with MacPorts. I/usr/local/mysql/include -Os -g -fno-common -fno-strict-aliasing -arch x86_64 usr/local/mysql/bin/mysql: Mach-O 64-bit executable x86_64Ībc-MacBook:~ Abc$ /usr/local/mysql/bin/mysql_config –cflags usr/bin/python (for architecture i386): Mach-O executable i386Ībc-MacBook:~ Abc$ file /usr/local/mysql/bin/mysql usr/bin/python (for architecture x86_64): Mach-O 64-bit executable x86_64 usr/bin/python: Mach-O universal binary with 2 architectures

setting up mysql on mac

Tried all options here and on stackoverflow. Thanks for your helpful post and the links to the installs!įor some reason, I am just not able to get this thing work. I’ve been hunting around the web for the past few hours trying to find a solution. Mysqlcheck: Got error: 2002: Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2) when trying to connect Running ‘mysqlcheck with default connection arguments Please run mysql_upgrade to create it.ġ20408 1:12:12 InnoDB: The InnoDB memory heap is disabledġ20408 1:12:12 InnoDB: Mutexes and rw_locks use GCC atomic builtinsġ20408 1:12:12 InnoDB: Compressed tables use zlib 1.2.3ġ20408 1:12:12 InnoDB: Initializing buffer pool, size = 128.0Mġ20408 1:12:12 InnoDB: Completed initialization of buffer poolġ20408 1:12:12 InnoDB: highest supported file format is Barracuda.ġ20408 1:12:12 InnoDB: Waiting for the background threads to startġ20408 1:12:13 InnoDB: 1.1.8 started log sequence number 1595675ġ20408 1:12:13 Fatal error: Can’t open and lock privilege tables: Table ‘mysql.host’ doesn’t exist Mysqld: Table ‘ugin’ doesn’t existġ20408 1:12:12 Can’t open the ugin table. I’m having an issue installing MySQL and making it work with python.ġ20408 1:12:12 Setting lower_case_table_names=2 because file system for /usr/local/mysql/data/ is case insensitiveġ20408 1:12:12 Plugin ‘FEDERATED’ is disabled. I’d suggest starting from the Django’s excellent introductory tutorial. If you are not getting any errors at this point, then you are all good to go! On your settings.py remember to set “127.0.0.1” as your preferred db host in case that “localhost” doesn’t work. Moreover if you prefer MAMP, you don’t have to run mysql from /usr/local/mysql. If you are already using MAMP you still have to follow the above MySQL installation process, as MAMP by default doesn’t include the required header files to build MySQL-python.

Setting up mysql on mac install#

You are now ready to build and install MySQL-python:Įdit your ~/.bash_profile, add the following line:Įxport DYLD_LIBRARY_PATH=/usr/local/mysql/lib/ – You should now have mysql installed on /usr/local/mysqlĭownload the latest MySQL-python package hereĮdit site.cfg on your favorite text editor and change the mysql path as below: mysql_config = /usr/local/mysql/bin/mysql_config – At this point I am assuming that you are familiar with the Terminal, so simply execute the following commands on your Downloads folder:ĭownload the latest MySQL (64-bit, tar archive) here

setting up mysql on mac

Setting up mysql on mac mac os x#

Here is a quick setup guide for installing Django and MySQL-python on Mac OS X Lion. Django is an excellent web-framework written in Python.














Setting up mysql on mac