phpMyAdmin

how to import txt to mysql direct or through php

我只是一个虾纸丫 提交于 2021-02-11 08:31:05
问题 I need to import my .txt to MySQL ` which has only one field like this I have tries this many way but failed :( Could you help me please If any have idea with php that is also acceptable. I spend two for this unfortunately not succeeded yet :( Thanks in advance 回答1: You can use Mysql LOAD DATA LOCAL INFILE syntax LOAD DATA LOCAL INFILE '/path/to/file.txt' INTO TABLE 'table1' LINES TERMINATED BY '\n' For this, make sure Mysql has access to /path/to/file.txt . Also the user who is executing the

Error #1109 - unknown table in field list caused by trigger

老子叫甜甜 提交于 2021-02-10 12:24:25
问题 This is my trigger. I want to make trigger on 1 table (pelayanan). CREATE DEFINER=`root`@`localhost` TRIGGER `before_insert_pelayanan` BEFORE INSERT ON `pelayanan` FOR EACH ROW IF NEW.`ESTIMASI` IS NULL OR NEW.`ESTIMASI` = 0 AND `dbhpl`.`pelayanan`.`DAYA` <= 5500 THEN SET NEW.ESTIMASI = 4; ELSEIF NEW.ESTIMASI IS NULL OR NEW.ESTIMASI = 0 AND `dbhpl`.`pelayanan`.`DAYA` <= 33000 AND `dbhpl`.`pelayanan`.`DAYA` >= 6600 THEN SET NEW.ESTIMASI = 15; ELSEIF NEW.ESTIMASI IS NULL OR NEW.ESTIMASI = 0 AND

禅道Bug管理工具环境搭建

独自空忆成欢 提交于 2021-02-10 04:30:57
下载地址: http://sourceforge.net/projects/zentao/files/8.2/ZenTaoPMS.8.2.stable.exe/download 1、解压ZenTaoPMS.8.1.3到根目录,比如“C:\ xampp”、“D:\ xampp 2、进入xampp,以管理员身份点击“启动禅道” 3、禅道集成运行环境1.2.6,点击启动 4、系统会自动启动禅道所需要的apache和mysql服务 5、点击“访问禅道”,即可打开禅道环境的首页,5秒钟之后,页面会自动调到禅道的页面,并点击“开源版” 6、禅道项目管理软件的登录账号:admin、密码:123456 7、配置禅道:修改mysql数据库的密码,输入数据库的访问网http://127.0.0.1/phpmyadmin,点击进入“用户”,勾选“root”用户,接着,点击编辑权限 8、在“修改密码”中,输入密码:12345,点击“执行” 9、修改“root”账号的数据库密码,需要在xampp/zentao/config/my.php 里面的数据库密码 10、继续在D:\xampp\phpmyadmin\config.inc.php修改数据库密码 11、在服务器apache:D:\xampp\apache\conf\httpd.conf 更改端口号:80 改为端口号:8088 12、查看数据库mysql:

How do I login to phpmyadmin on Google Cloud

China☆狼群 提交于 2021-02-08 13:43:56
问题 I setup the Wordpress 1 Click, and Google Cloud, automatically created a user for me. I did not get any place, where the phpmyadmin password is. How can I get hold of that 回答1: First off, when you deploy the one-click installation, you need to ensure you have 'install phpMyAdmin' checked - we will assume that was installed and you did not overwrite the phpMyAdmin default user & password after :) Next, navigate to the Google Cloud Console and find your project where your WordPress installation

Can't set up phpmyadmin on Mac OS High Sierra

柔情痞子 提交于 2021-02-08 10:17:42
问题 I've been some hours trying to set up phpmyadmin in my MacBook Pro, and I get to have in running in localhost, but when it comes to filling the username and password, I get some errors, usually related to SQL. I was wondering if there is any tutorial to follow so I can set it up properly. Thank you, Álvaro. 回答1: When you're using the default 'host' value in phpMyAdmin, it tries to connect via socket connection ( $cfg['Servers'][$i]['host'] = 'localhost'; is the default, unless you've

vserver phpmyadmin error on every password change

痞子三分冷 提交于 2021-02-08 06:35:35
问题 I installed Phpmyadmin and MySQL with apache2 to my Vserver, but Im getting on Every Password change this error mysqli_real_connect(): (HY000/1045): Access denied for user 'phpmyadmin'@'localhost' (using password: YES) and this Connection for controluser as defined in your configuration failed. what is here the Problem? 回答1: The phpMyAdmin application has a set of additional features that can be enabled by creating an additional user (called the controluser); those features include things

Why phpmyadmin does not create values for enum type?

大城市里の小女人 提交于 2021-02-07 21:01:53
问题 I am new to mysql so I am using phpmyadmin to create table in database. I have field Manufacturer of enum type with possible values "manufacturer1", "manufacturer2", ... I chose ENUM type and clicked on "Edit ENUM/SET values" and a window pop up asking for desired values. I fallow the instructions, press "go" and 'Manufacturer1','Manufacturer2','Manufacturer3','Manufacturer4' is no written in Length/Values. When I try to create table I get 1064 syntax error. When I click on "Preview SQL" I

Best LAMP environment for Mac [closed]

删除回忆录丶 提交于 2021-02-07 11:11:51
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Improve this question I am use to using WAMP on a windows machine but I want to install something similar on a MAC. I have noticed that there are quite a few. What is the best LAMP environment to use for MAC if used to WAMP? I nearly went MAMP but can't have multiple virtual hosts

CentOS 安装lamp和phpmyadmin

隐身守侯 提交于 2021-02-06 10:29:26
建立自启动脚本: 从网站下载安装包:https://bitnami.com/stack/lamp chmod 755 bitnami-APPNAME-VERSION-linux.run ./bitnami-APPNAME-VERSION-linux.run 修改mysql绑定的127.0.0.1。 cd /opt/lampstack/mysql vi my.cnf 注释bind-address = 127.0.0.1 [mysqladmin] user=root [mysqld] basedir=/opt/lampstack/mysql datadir="/opt/lampstack/mysql/data" port=3306 socket=/opt/lampstack/mysql/tmp/mysql.sock tmpdir=/opt/lampstack/mysql/tmp max_allowed_packet=32M #bind-address=127.0.0.1 skip-name-resolve=1 character-set-server=UTF8 collation-server=utf8_general_ci [client] port=3306 socket=/opt/lampstack/mysql/tmp/mysql.sock default-character

MYSQL tee syntax not working

谁说我不能喝 提交于 2021-02-05 10:23:41
问题 Can anyone help me with this? I am currently trying to write my queries to a file and I will eventually close it with notee; call. I have used the tee call before but for some reason today I am having problems. Here is the syntax in question: tee c:/trash/test.txt; select*from customer; Here is the Error: Error There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem. ERROR: Unknown Punctuation String @ 6