<legend id='apKjN'><style id='apKjN'><dir id='apKjN'><q id='apKjN'></q></dir></style></legend>

      • <bdo id='apKjN'></bdo><ul id='apKjN'></ul>

      <small id='apKjN'></small><noframes id='apKjN'>

    1. <i id='apKjN'><tr id='apKjN'><dt id='apKjN'><q id='apKjN'><span id='apKjN'><b id='apKjN'><form id='apKjN'><ins id='apKjN'></ins><ul id='apKjN'></ul><sub id='apKjN'></sub></form><legend id='apKjN'></legend><bdo id='apKjN'><pre id='apKjN'><center id='apKjN'></center></pre></bdo></b><th id='apKjN'></th></span></q></dt></tr></i><div id='apKjN'><tfoot id='apKjN'></tfoot><dl id='apKjN'><fieldset id='apKjN'></fieldset></dl></div>

      1. <tfoot id='apKjN'></tfoot>
      2. MySQL 配置不当的原因:不安全的使用相对路径

        MySQL Improperly Configured Reason: unsafe use of relative path(MySQL 配置不当的原因:不安全的使用相对路径)
        <legend id='1U5Ks'><style id='1U5Ks'><dir id='1U5Ks'><q id='1U5Ks'></q></dir></style></legend>

        • <i id='1U5Ks'><tr id='1U5Ks'><dt id='1U5Ks'><q id='1U5Ks'><span id='1U5Ks'><b id='1U5Ks'><form id='1U5Ks'><ins id='1U5Ks'></ins><ul id='1U5Ks'></ul><sub id='1U5Ks'></sub></form><legend id='1U5Ks'></legend><bdo id='1U5Ks'><pre id='1U5Ks'><center id='1U5Ks'></center></pre></bdo></b><th id='1U5Ks'></th></span></q></dt></tr></i><div id='1U5Ks'><tfoot id='1U5Ks'></tfoot><dl id='1U5Ks'><fieldset id='1U5Ks'></fieldset></dl></div>
            • <bdo id='1U5Ks'></bdo><ul id='1U5Ks'></ul>

                  <small id='1U5Ks'></small><noframes id='1U5Ks'>

                  <tfoot id='1U5Ks'></tfoot>
                    <tbody id='1U5Ks'></tbody>
                  本文介绍了MySQL 配置不当的原因:不安全的使用相对路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 Django,当我运行 python manage.py runserver 时,我收到以下错误:

                  I'm using Django, and when I run python manage.py runserver I receive the following error:

                  ImproperlyConfigured: Error loading MySQLdb module: dlopen(/Library/Python/2.7/site-packages/_mysql.so, 2): Library not loaded: libmysqlclient.18.dylib
                    Referenced from: /Library/Python/2.7/site-packages/_mysql.so
                    Reason: unsafe use of relative rpath libmysqlclient.18.dylib in /Library/Python/2.7/site-packages/_mysql.so with restricted binary
                  

                  我不完全确定如何解决这个问题.我已经通过 pip 安装了 MySQL-python.我更早地遵循了此步骤.

                  I'm not entirely sure how to fix this. I have installed MySQL-python via pip. And I followed this step earlier.

                  我还想指出这是 El Capitan Beta 3.

                  I want to also point out this is with El Capitan Beta 3.

                  推荐答案

                  在 OS X El Capitan (10.11) 中,Apple 添加了 系统完整性保护.

                  In OS X El Capitan (10.11), Apple added System Integrity Protection.

                  这可以防止/usr 等受保护位置中的程序调用使用对另一个共享库的相对引用的共享库.对于_mysql.so,它包含对共享库libmysqlclient.18.dylib 的相对引用.

                  This prevents programs in protected locations like /usr from calling a shared library that uses a relative reference to another shared library. In the case of _mysql.so, it contains a relative reference to the shared library libmysqlclient.18.dylib.

                  未来可能会更新共享库_mysql.so.在此之前,您可以通过 install_name_tool 实用程序强制它使用绝对引用.

                  In the future, the shared library _mysql.so may be updated. Until then, you can force it to use an absolute reference via the install_name_tool utility.

                  假设libmysqlclient.18.dylib在/usr/local/mysql/lib/,然后运行命令:

                  Assuming that libmysqlclient.18.dylib is in /usr/local/mysql/lib/, then run the command:

                  sudo install_name_tool -change libmysqlclient.18.dylib \
                    /usr/local/mysql/lib/libmysqlclient.18.dylib \
                    /Library/Python/2.7/site-packages/_mysql.so
                  

                  这篇关于MySQL 配置不当的原因:不安全的使用相对路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to delete duplicate records in mysql database?(如何删除mysql数据库中的重复记录?)
                  Python Pandas write to sql with NaN values(Python Pandas 使用 NaN 值写入 sql)
                  MySQL Insert amp; Joins(MySQL 插入 amp;加入)
                  MySQL concat() to create column names to be used in a query?(MySQL concat() 创建要在查询中使用的列名?)
                  NodeJS responded MySQL timezone is different when I fetch directly from MySQL(当我直接从 MySQL 获取时,NodeJS 响应 MySQL 时区不同)
                  WHERE datetime older than some time (eg. 15 minutes)(WHERE 日期时间早于某个时间(例如 15 分钟))

                    <bdo id='TLVS2'></bdo><ul id='TLVS2'></ul>

                        <small id='TLVS2'></small><noframes id='TLVS2'>

                      1. <tfoot id='TLVS2'></tfoot>
                          <tbody id='TLVS2'></tbody>
                            <i id='TLVS2'><tr id='TLVS2'><dt id='TLVS2'><q id='TLVS2'><span id='TLVS2'><b id='TLVS2'><form id='TLVS2'><ins id='TLVS2'></ins><ul id='TLVS2'></ul><sub id='TLVS2'></sub></form><legend id='TLVS2'></legend><bdo id='TLVS2'><pre id='TLVS2'><center id='TLVS2'></center></pre></bdo></b><th id='TLVS2'></th></span></q></dt></tr></i><div id='TLVS2'><tfoot id='TLVS2'></tfoot><dl id='TLVS2'><fieldset id='TLVS2'></fieldset></dl></div>
                          1. <legend id='TLVS2'><style id='TLVS2'><dir id='TLVS2'><q id='TLVS2'></q></dir></style></legend>