[英]How can I get a true random from an array? Or should I do something else entirely?
[英]How do I make an Electron login system using mysql or should i do something else?
I'm making my first Electron app and I'm not sure whether or not I should use the MySQL npm package or whether I should just use a MySQL in standard JavaScript that loads when the application starts for a login page if you could give me任何关于使用什么以及如何做的建议,都会有很大帮助
编辑:我正在做的事情是一个应用程序,其中管理员和标准用户都使用相同的登录界面并且登录他们将连接到在线 mysql 数据库,它将检查登录详细信息是否正确以及它们是否正确are then it will either give them the standard or admin view in the application and I'm not sure whether or not I should use mysql in javascript or whether or not I should use the npm mysql package and if I should use that instead of using标准 javascript?
此外,我希望应用程序能够离线运行,用户可以在线登录并编辑应用程序中的内容,例如他们的用户名或密码等(将存储在数据库中的内容),并在连接时拥有它重新建立它允许更新数据库中的信息。
我只是在寻找一些关于如何做到这一点的建议或一些正确方向的指针,例如一些文档或一些可能对我有帮助的最新教程,我是 node/electron 的新手,因此请耐心等待:P
我最终使用了远程 mysql 服务器并使用了 mysql 节点 package 来执行此操作,这非常容易使用
npm install mysql --save
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.