質問編集履歴

1

データベースユーザー名・パスワードの削除

2021/04/12 16:30

投稿

hiziki
hiziki

スコア54

test CHANGED
File without changes
test CHANGED
@@ -28,7 +28,7 @@
28
28
 
29
29
  require '../password.php';
30
30
 
31
- $link = mysql_connect('localhost', 'c157mjhsbrass', 'PercTpHr');
31
+ $link = mysql_connect('localhost', '(ユーザー名)', '(パスワード)');
32
32
 
33
33
  if (!$link) {
34
34
 
@@ -38,7 +38,7 @@
38
38
 
39
39
 
40
40
 
41
- $db_selected = mysql_select_db('c157sqltest', $link);
41
+ $db_selected = mysql_select_db('(ユーザー名)', $link);
42
42
 
43
43
  if (!$db_selected){
44
44
 
@@ -110,7 +110,7 @@
110
110
 
111
111
  ```error
112
112
 
113
- Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/clients/client157/web190/web/buin/account/insert.php on line 10
113
+ Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in (ディレクトリ)insert.php on line 10
114
114
 
115
115
  ```
116
116
 
@@ -146,11 +146,11 @@
146
146
 
147
147
  $host = 'localhost';
148
148
 
149
- $username = 'c157mjhsbrass';
149
+ $username = '(ユーザー名)';
150
-
150
+
151
- $passwd = 'PercTpHr';
151
+ $passwd = '(パスワード)';
152
-
152
+
153
- $dbname = 'c157sqltest';
153
+ $dbname = '(データベース名)';
154
154
 
155
155
 
156
156
 
@@ -224,7 +224,7 @@
224
224
 
225
225
  ```
226
226
 
227
- Warning: mysql_query() expects parameter 1 to be string, object given in /var/www/clients/client157/web190/web/buin/NA/insert.php on line 26
227
+ Warning: mysql_query() expects parameter 1 to be string, object given in /insert.php on line 26
228
228
 
229
229
  クエリの送信に失敗しました。
230
230