Segmentation fault MySQLdb
问题 I have installed MySQLdb for python, and have the following code. import MySQLdb conn = MySQLdb.connect(host="hello") Everytime I run this on terminal, I get Segmentation fault (core dumped) But when I put the above lines in hi.py file, and run python hi.py, then I do not see this error in terminal. Could anyone give me an advice to fix this problem? $ python >>> import MySQLdb >>> conn = MySQLdb.connect(host="hello") Segmentation fault (core dumped) This is the command I typed in the