keepwn / Altman

the cross platform webshell tool in .NET
Other
540 stars 226 forks source link

sqlConnection problem #10

Closed glira closed 9 years ago

glira commented 9 years ago

I can not access the database in any way I always get the same message

shell's sqlConnection is null or space

here is the example of my configuration, I already tried several variations

<sqlConnection>
<type>mysql</type>
<host>127.0.0.1</host>
<user>root</user>
<pass>p4ssw0rd</pass>
<language>utf-8</language>
</sqlConnection>
keepwn commented 9 years ago

I am so sorry. When updating the new program, i forgot to replace the old _func.tree file. You can manual download the new file now, and replace the old CustomType\_func.tree file. Hope to work well now.

glira commented 9 years ago

thanks for your quick response, but the error persists

keepwn commented 9 years ago

Is the same problem? You can do this: ShellManager->Edit->Advanced->Default And you will see like this

#设置数据库连接
#type为数据库类型
#conn为连接字符串
[SqlConnection]
#type=mssql_sqlsrv
#conn=127.0.0.1;root;password;utf-8;

You should edit it by above format, and delete # which is comment.

glira commented 9 years ago

you are right, it worked thank you, congratulations for the code!

keepwn commented 9 years ago

It's my pleasure.