sql >> Database teknologi >  >> RDS >> Mysql

Fejl med MySql under pakkeinstallation

Jeg fandt min løsning, og her er den:

Trin 1:Ryd op i din tidligere installerede rvm og Xcode

    => rm -rf ~/.rvm    
    => sudo rm -rf /Developer

Trin 2:Installer Xcode fra App Store, ellers kan installationsprogrammet blive gemt i din Launchpad.

Trin 3:Installer HomeBrew:

    => mkdir -p /usr/local/Cellar
    => /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"

Trin 4:Installer RVM

    => bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
    => echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" #  Load RVM function' >> ~/.bash_profile

Trin 5:Installer Ruby 1.9.2

    => rvm install 1.9.2
    => rvm use ruby-1.9.2 --default
    => gem install rails thin bundler
    => rvm install 1.9.2-head
    => brew install git ack wget curl redis memcached libmemcached colordiff imagemagick

Trin 6:Installer MySql

    => brew install mysql
    => mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
    => mkdir -p ~/Library/LaunchAgents
    => cp /usr/local/Cellar/mysql/5.5.15/com.mysql.mysqld.plist ~/Library/LaunchAgents/
    => launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
    => mysql -u root
    => UPDATE mysql.user SET Password=PASSWORD('password') WHERE User='root';
    => FLUSH PRIVILEGES;


  1. Sådan gør du dine adgangsdatabaser ultrahurtige!

  2. SSIS-pakken ønsker ikke at hente metadata fra den midlertidige tabel

  3. Mac OS Sierra virtualenv (python 2.7) pip install mysqlclient fejl

  4. Forespørgselsprofilering 101 — Ja, det kan virkelig forbedre din SQL Server-ydeevne