Before due to testing needs, must use the mysql5.7 client, now because the product is perfect, began to support 5.6, so need to install 5.6 of the client to do the test, considering the efficiency of manual testing and non-repeatability, ready to automate the implementation of the original use cases.
The old use case is to use mysqldb do driver, mysqldb by default is 5.6, at that time in order to use 5.7 for a special treatment (TODO: here to add steps), now want to reuse 5.6, the idea is to install a 5.6, and then the use of 5.7 of the MySQLdb deleted, The result is not feasible, always reported a libmysqlclient._20xxx can not find the error, speculation or affected by the original. Before the mysql5.7 installation package added to the path, want to remove from path, but the addition of the operation is set in the Dockerfile, so in ~/.BASHRC ~/.profile did not find the relevant value.
The final solution is a in the image file MySQLdb Special processing part of the deletion, b the path path of 5.7 Delete, only do a, do not do B still do not work, the first can, but the follow-up do not know why there is no libmysqlclient._20xxx error
Todo:
1 MySQLdb How to set up using a specific mysqlclient version
2
Today's problems with Linux