Yingruoyuan
V2EX  ›  macOS

请教下在 macos 下配置 mysql,怎样改变默认的数据存储路径到自己指定的一个路径下?

  •  
  •   Yingruoyuan · Oct 20, 2017 · 2557 views
    This topic created in 3133 days ago, the information mentioned may be changed or developed.

    如题,尝试了在 /etc/my.cnf 中修改

    [mysqld]
    basedir=/usr/local/mysql
    datadir=/new/path/to/data
    

    重启 mysql,没效果。 该怎么修改路径呢?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5664 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 06:27 · PVG 14:27 · LAX 23:27 · JFK 02:27
    ♥ Do have faith in what you're doing.