使MySQL数据库可用于我的PHP代码(在实时网站上)

时间:2016-12-16 10:48:37

标签: php mysql database mysql-workbench windows-server-2012

所以在过去的几天里我写了一些PHP代码来添加/更新/删除内容到db&将它显示在另一页上。我在开发它时使用了xampp(Apache webserver和MySQL数据库),所以我的db_config文件有:

Private Sub btn_erstellen_Click()
Dim My_filenumber As Integer
Dim logSTR As String
Dim i, j As Integer
i = tb_dw1.Value
j = tb_dw2.Value


My_filenumber = FreeFile
Open "C:\test\Sample.csv" For Append As #My_filenumber

Do While Not Cells(i, "B").Value = ""
If i = j + 1 Then
    Exit Do
Else
    If Cells(i, "F").Text = "inaktiv" Or Cells(i, "A").Text = "INTERNER" Then
        i = i + 1
    Else
        If Cells(i, "A").Value = "-" Then
        logSTR = Cells(i, "B").Value & ","
        Else
        logSTR = Cells(i, "A").Value & " "
        logSTR = logSTR & Cells(i, "B").Value & ","
        End If
        logSTR = logSTR & """"
        logSTR = logSTR & Cells(i, "C").Value
        logSTR = logSTR & """" & "," & """" & "colleagues" & """" & "," & """" & "active" & """"
        i = i + 1
        Print #My_filenumber, logSTR
    End If
End If
Loop

Close #My_filenumber
End Sub

现在我拥有的数据库(在phpMyAdmin中)我完全重新创建(这次是在MySQL Workbench中)。我的问题是我现在在db_config文件中为在线页面添加了什么?我是否需要对我在MySQL Workbench中创建的数据库做些额外的事情?我还在工作台中创建了一个我想用于此的新用户(登录名:名称,身份验证类型:标准,限制主机匹配:localhost,密码:密码)并为其提供了我数据库的所有模式权限。 / p>

页面托管在带有IIS管理器的VM Windows Server 2012上,MySQL Workbench也在同一个VM上运行。

0 个答案:

没有答案