编辑MySql数据库记录
我的网络服务器上有一个 MySQL 数据库,我经常需要添加记录。有什么简单的方法可以添加/编辑/删除记录,而无需登录我的控制面板,然后登录 phpMyAdmin?
另外,如果我能找到一种让多个用户添加记录的方法,这将为我节省大量时间,无需导入大量 csv 文件。
我的 Galazy Tab 的 Android 应用程序将是史诗般的。
I have a MySQL database located on my webserver that I frequently need to add records. What is an easy way to add/edit/delete records without having to login to my control panel, then login in to phpMyAdmin?
Also, If I could find a way for multiple users to add records, It would save me a lot of time from having to import lots of csv files.
An Android App for my Galazy Tab would be epic.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
Adminer 可能就是您要找的;它是您上传到服务器的单个 PHP 文件。您只需登录数据库(它会为您保存详细信息),然后就可以了。想想PHPMyAdmin,但没有那么臃肿。
它显然可以在你的 Galaxy Tab 上运行(嫉妒的咆哮随之而来;我想要一个!),因为它是基于网络的。如果你喜欢这类事情的话,它也是有主题的。
Adminer is probably what you're looking for; it's a single PHP file you upload to your server. You just log in to the database (it'll save details for you), and off you got. Think PHPMyAdmin, but not as bloated.
It'll obviously work on your Galaxy Tab (jealous rant ensues; I want one!), as it's web based. It's also themable, if you're into that kind of thing.
有一个官方的 MySQL GUI 查询浏览器/管理员/数据库设计器应用程序,可以从此处下载< /a>.要使用此功能,您需要确保您的服务器配置为允许您的 MySQL 用户帐户从远程 IP 地址登录。
There is an official MySQL GUI Query Browser/Administrator/Database Designer application that can be downloaded from here. To use this you need to make sure that your server is configured to allow your MySQL user account to log in from a remote IP address.
除了编写自己的 Web 应用程序来执行此操作(例如,在 php 中轻松完成)之外,您还可以在 Web 空间中安装 phpMyAdmin。 phpMyadmin 只是一个基于 php 的 Web 应用程序,通常安装在控制面板中,但没有什么可以阻止您设置和配置自己的副本。
话虽如此,并考虑到您使用手机的愿望 - 真正简化的形式可能是您的最佳解决方案。
Aside from writing your own webapp to do that (easily done in php for example) you could install phpMyAdmin in webspace. phpMyadmin is simply a php based web application that is typically installed in control panel, but there is nothing preventing you from setting up and configuring your own copy.
With that said, and considering your desire to use your phone -- a really simplified form might be the best solution for you.
您可以使用数据库中的列创建 csv 文件并使用
加载数据INFILE ...
请参阅http://dev.mysql.com/doc/refman/ 5.1/en/load-data.html。
但无论如何,你应该有脚本(也许是 php),它将为特定文件运行此命令。
You can create csv file with columns like in your db and use
LOAD DATA INFILE ...
See http://dev.mysql.com/doc/refman/5.1/en/load-data.html.
But anyway you should have script maybe php which will get run this command for a specific file.
您可以使用 PHP 创建一些简单的 Web 服务。只是一个接收 HTTP GET 并从中形成 SQL 查询的脚本。
然后,您可以创建一个由一个表单(活动)组成的 Android 应用程序。该表单上的提交按钮可以向您的 PHP Web 服务发送 HTTP GET 请求,并根据您的表单创建数据库记录。
这是一个很好的初学者项目。只需几百行代码。当您开始构建它时,发布更具体的问题,有人会帮助您...
示例 PHP Web 服务:
You can create some simple web services in PHP. Just a script that receives an HTTP GET, and forms a SQL query out of that.
You can then create a android application consisting of one form (activity). The submit button on that form can send an HTTP GET request to your PHP web service and create a database record based on your form.
This is a good, beginner project. Just a couple hundred lines of code. When you start building it, post more specific questions, and someone will help you...
Sample PHP web service:
我会使用
HeidiSQL
因为它允许通过 SSH 进行 MYSQL 连接(您只需通过隧道传输 MYSQL 流量)。无需向世界开放mysql,你的指尖就拥有了一个非常强大易用的客户端。停止在您的服务器上使用 phpmyadmin,使用 HeidiSQL。这是链接 http://www.heidisql.com/
稍后获取 plink .exe(用于隧道)然后就可以了,这是一个简单的设置过程。
What I would use is
HeidiSQL
as it allows MYSQL connections over SSH (you just tunnel your MYSQL traffic over). No need to open mysql to the world, and you have a very powerful easy to use client at your fingertips. Stop using phpmyadmin on your server, use HeidiSQL.Here is the link http://www.heidisql.com/
later get plink.exe (for tunnel) and off you go, its a simple process to setup.