Home > Database > Mysql Tutorial > body text

mysql-pyqt如何判QProcess.start()是否执行成功

WBOY
Release: 2016-06-06 09:42:05
Original
2132 people have browsed it

mysqlpyqtpython数据库

我在写一个程序,获取了用户输入的数据库用户名和密码,并用QProcess.start()执行:
p = QtCore.QProcess(self)
p.setProcessChannelMode(QtCore.QProcess.ForwardedChannels)
p.start("mysql",["-uroot","-pyourpassword"])
那我该怎么通过返回值或其他方法判断密码是否正确?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template